Closed dfontalv20 closed 7 months ago
Could you please provide the complete code that reproduces the error? Some of the information is hidden on the screenshots.
Here is a codesandbox: https://codesandbox.io/p/sandbox/priceless-dew-ty9662?file=%2Fsrc%2FApp.tsx%3A7%2C10
I'm also getting the same issue.
Thanks for opening the topic, please update the package to the latest version, which solves this problem:
npm i @react-input/mask@latest
When i try to use the
InputMask
component with a custom input, i have this error when this custom component has required propsI think that a possible fix could be adding generic type to this
React.ComponentType
. Note theCP
(Component Props) genericWith this, the
label
prop is succesfully required in theInputMask
componentAnd if I add a value for this prop, the error dissapears