GoncharukOrg / react-input

100 stars 7 forks source link

Feature Suggestion: Be able to modify the value #12

Closed jinsato0422 closed 5 months ago

jinsato0422 commented 1 year ago

For the Modify Feature, it would be nice to modify the value as well.

GoncharukBro commented 1 year ago

Thanks for the suggestion, we are currently working on creating an easy api for users to change the value.

seitbekir commented 9 months ago

Any progress on this? I believe, it could catch the value and apply the mask on it.

GoncharukBro commented 5 months ago

The new version adds the track method, with which you can conditionally change the entered value.

You can intercept input to change the entered value every time the value in the input element changes. See Track.

npm i @react-input/mask@latest