You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I simplified the example with just a basic input. In my app i am using reactstrap's Input, which is nothing more than a simple wrapper over input so it does not matter.
Expected behavior
Since you are passing inputRef to ComposeComponent in mixin.ts#L239 its types should be corrected.
Right now ComposedComponents has props of type
export declare type ReactMaskedElement = React.HTMLProps<HTMLInputElement | HTMLTextAreaElement>;
which really does not have inputRef property.
Environment:
react 16.14.0
react-imask 6.4.0
typescript 4.5.5
If you want me to create a PR, feel free to tell me.
Thank you for your response.
The text was updated successfully, but these errors were encountered:
@uNmAnNeR Thanks for the alpha! I tested it, and the issue is fixed. I was able to smoothly use the mixin and created Input works as expected. Thanks !
Describe the bug
Simple typescript error
Property 'inputRef' does not exist on type 'HTMLProps & { children?: ReactNode; }'.
when usingIMaskMixin
To Reproduce
I simplified the example with just a basic input. In my app i am using reactstrap's
Input
, which is nothing more than a simple wrapper overinput
so it does not matter.Expected behavior
Since you are passing
inputRef
toComposeComponent
in mixin.ts#L239 its types should be corrected.Right now
ComposedComponents
has props of typewhich really does not have
inputRef
property.Environment:
If you want me to create a PR, feel free to tell me.
Thank you for your response.
The text was updated successfully, but these errors were encountered: