realadvisor / rifm

React Input Format & Mask, tiny (≈800b) component to transform any input component into formatted or masked input. Supports number, date, phone, currency, credit card, etc
https://realadvisor.github.io/rifm/
MIT License
1.3k stars 44 forks source link

negative number format getting truncated #127

Open olee-brex opened 2 years ago

olee-brex commented 2 years ago

not sure if this is the right place, but i noticed an edge case within the demo sandbox for Negative Number Format. When a user tries to type - in the middle of the input string, everything to the right gets truncated. Is this an expected behavior or is it possible to filter out - whenever its not added to the front of the string?

heres a demo, rifm