react-number-format
react-number-format copied to clipboard
refs not passed to CustomInput
refs not passed to CustomInput:
https://github.com/s-yadav/react-number-format/blob/b233bd68c7cd16c63287c3aa4df576c2ff80eca9/src/number_format.js#L895-L897
even though the docs indicate that they should be (when using inputRef
)
Did you find any workaround?
For me, it doesn't even work for other props as well. For e.g.
<NumericFormat
customInput={InputGroup}
thousandSeparator={false}
decimalScale={2}
intent={intent}
inputRef={quantityRef}
{...props}
/>
Here intent
and inputRef
doesn't get passed to the custom input InputGroup
. Anyone found any workaround here?