react-number-format icon indicating copy to clipboard operation
react-number-format copied to clipboard

Move cursor when use customNumerals

Open straxico opened this issue 3 years ago • 4 comments

Describe the issue and the actual behavior

https://user-images.githubusercontent.com/6344893/135714646-b9883bc4-44e6-4d88-ac9e-3cc2ddafd0c9.mp4

Provide a CodeSandbox link illustrating the issue

https://codepen.io/straxico/pen/BaZEPNM

Provide steps to reproduce this issue

start type with persian character

Please check the browsers where the issue is seen

  • [ ] Chrome
  • [x] Chrome (Android)
  • [ ] Safari (OSX)
  • [ ] Safari (iOS)
  • [ ] Firefox
  • [ ] Firefox (Android)

straxico avatar Oct 02 '21 11:10 straxico

@electather have any idea?

straxico avatar Oct 02 '21 11:10 straxico

@straxico I'm glad my contribution helped you with your project. I had to re-read the whole thing to figure out the problem. but it was an easy fix. I created the MR with the fix and the rest is up to the maintainer.

electather avatar Oct 02 '21 15:10 electather

still the cursor moves when you use thousandSeparator and persian numbers format at the same time, what should I do?

farhang103 avatar Feb 17 '23 09:02 farhang103

@farhang103 I didn't get to merge the fix. try building a package with the https://github.com/s-yadav/react-number-format/pull/580.

electather avatar Feb 17 '23 10:02 electather