Open maximeperraultdev opened 4 months ago
Describe the bug Hi !
unmask
To Reproduce It happens when you type 0 at position 0, the mask changes and the caret move to last position. It doesnt happen when unmaskis set to false
false
unmask is set to true https://stackblitz.com/edit/react-dpvanv?file=src%2FApp.tsx,src%2Findex.js
true
unmask is set to false https://stackblitz.com/edit/react-vug3uy?file=src%2FApp.tsx
Expected behavior The cursor stays on current caret position when mask are changing
Environment:
Additional context Add any other context about the problem here.
Describe the bug Hi !
unmask
is set to true.To Reproduce It happens when you type 0 at position 0, the mask changes and the caret move to last position. It doesnt happen when
unmask
is set tofalse
unmask
is set totrue
https://stackblitz.com/edit/react-dpvanv?file=src%2FApp.tsx,src%2Findex.jsunmask
is set tofalse
https://stackblitz.com/edit/react-vug3uy?file=src%2FApp.tsxExpected behavior The cursor stays on current caret position when mask are changing
Environment:
Additional context Add any other context about the problem here.