teslamotors / informed

A lightweight framework and utility for building powerful forms in React applications
https://teslamotors.github.io/informed
MIT License
956 stars 173 forks source link

RTL formatted input issue #476

Closed mmutsaars closed 1 week ago

mmutsaars commented 1 week ago

Describe the bug When typing 1234 in an RTL input with the IntlNumberFormatter as the formatter and parser the field value is set to 2341 because of the cursor position. This only happens when you start typing from an empty field, So focus in the field, remove any contents first and then start typing.

If you replace the existing value by typing when the value is selected it works fine.

To Reproduce https://codesandbox.io/p/sandbox/wckpnx

Video https://github.com/user-attachments/assets/d5f18959-7f66-4460-9060-102434cc19d4

joepuzzo commented 1 week ago

4.60.4 ( Nov 15th, 2024)

Fixed