react-number-format icon indicating copy to clipboard operation
react-number-format copied to clipboard

refs not passed to CustomInput

Open cancan101 opened this issue 6 years ago • 2 comments

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)

cancan101 avatar Jan 14 '19 22:01 cancan101

Did you find any workaround?

alvarotrigo avatar Mar 26 '21 18:03 alvarotrigo

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?

owenn2106 avatar Mar 22 '24 07:03 owenn2106