cchanxzy / react-currency-input-field

React component for an input field
MIT License
648 stars 118 forks source link

The cursor pointer after typing a decimal point is before the point, it should be after the point. It only happens the first time #290

Closed andresfaj closed 1 year ago

andresfaj commented 1 year ago

Describe the bug The cursor pointer after typing a decimal point with any number is before the point, it should be after the number. It only happens the first time.

To Reproduce Here a short video of it: input-currency-issue.webm

Expected behavior The correct behavior should be that the cursor pointer will be after the number.

Additional context An example of the issue:

Value of the input the first time: image

Value of the input the second time: image

andresfaj commented 1 year ago

The solution is here https://github.com/cchanxzy/react-currency-input-field/issues/249