react-number-format
react-number-format copied to clipboard
Caret moved at the end when used with Ant Design library
Describe the issue and the actual behavior
When custom input is passed to PatternFormat
, the caret will not hold it's position, but after first entered character, it will jump straight to the input's end.
Describe the expected behavior
Caret shall remain in the position of the last entered character.
Provide a CodeSandbox link illustrating the issue
https://stackblitz.com/edit/react-m9nrou-3d8qpz
Provide steps to reproduce this issue
Please see the sandbox provided.
Please check the browsers where the issue is seen
- [ ✅] Chrome
- [✅ ] Safari (OSX)
Duplicate: https://github.com/s-yadav/react-number-format/issues/818
@pgeimer, @lyvyu
https://stackblitz.com/edit/react-m9nrou-by6vji