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
What problem you are trying to solve?
The app I am working on uses refs to handle form data. I am able to use this mask component on currency input but ref.current contains the masked value.
Describe the solution you'd like
It would allow pre-existing large projects to use this mask if there is an option to have input ref return unmasked value.
For Example, having a boolean prop like unmaskedInputRef
The text was updated successfully, but these errors were encountered:
thanks for reporting.
in latest version you can pass ref to the IMaskInput, extract mask ref and then get any value you want. Like this: <IMaskInput ref={<YOUR REF>} />
get unmasked value: ref.current.maskRef.unmaskedValue
Can you check on v6.4.1-alpha.0?
What problem you are trying to solve?
The app I am working on uses refs to handle form data. I am able to use this mask component on currency input but
ref.current
contains the masked value.Current Example usage:
Describe the solution you'd like
It would allow pre-existing large projects to use this mask if there is an option to have input ref return unmasked value.
For Example, having a boolean prop like
unmaskedInputRef
The text was updated successfully, but these errors were encountered: