Closed dskiba closed 4 years ago
Hi, I have tried masked input with a custom component (also with react-hook-form) and notice that in Safari (13), after change cursor moves to the end.
Heres an example https://codesandbox.io/s/new-star-rzmfb
Works well in Chrome and Firefox.
think this is related to https://github.com/facebook/react/issues/955
Well, I think I fixed it :D https://codesandbox.io/s/focused-kapitsa-n3u6c
should use react setState, instead of setValue from react-hook-form
Hi, I have tried masked input with a custom component (also with react-hook-form) and notice that in Safari (13), after change cursor moves to the end.
Heres an example https://codesandbox.io/s/new-star-rzmfb
Works well in Chrome and Firefox.