sanniassin / react-input-mask

Input masking component for React. Made with attention to UX.
MIT License
2.22k stars 258 forks source link

Pasting a value doesn't work right #222

Open thany opened 4 years ago

thany commented 4 years ago

In the demo's, go to the second one and fill in a number. Then, cut the entire value, and paste it right back.

Expected result: The input contains the value that was cut and pasted back in.

Actual result: I don't know, there's some kind of missing or extra character. The value is not same, whatever the case.

christy-schott commented 3 years ago

@thany Did you find a way to resolve this?

thany commented 3 years ago

@christy-schott I haven't actually used this component yet. I was just exploring which one to use, but in the end, we decided on no masks at all 🤷‍♂️ But I thought it'd be helpful to report this issue anyway.

ianchanning commented 1 year ago

Indeed it pastes back in the first 7:

Screenshot from 2023-02-25 05-38-53

After cutting and pasting back in:

Screenshot from 2023-02-25 05-39-43