jsillitoe / react-currency-input

React component for inputing currency amounts
MIT License
203 stars 163 forks source link

Problems with copy paste values #99

Open andrew-aladev opened 4 years ago

andrew-aladev commented 4 years ago

We want to copy 100 into currency input - it becomes 1.00, 100.00 becomes 100.00, wrong behaviour. We need to protect user from removing . in another way. Currency input should use manual onKey* and onPaste events instead of just onChange.

ericblade commented 4 months ago

This sounds like reading the mind of the user, rather than having defined behavior. If I paste 1952, do I want 19.52 or 1952.00 ?