You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Framework/plugin version if used: Static web site.
Additional context
I added two event listener that updates the lazy option to false when you focus and set it true when you lost the focus on the input. Because I want to show default placeholder until users fill the input.
I had the same issue. It is because the masking characters are being placed on the screen before the on click event is being registered. The only way for me to get around it was to put a wait timer on the focus/blur event listeners for 1ms, so it gave time for the onclick event to happen first. Something like this:
In my case, the selectionEnd in safari becomes to 0 seems like on its own. and in time of select method in imask/esm/controls/mask-element.js we have early return because end === this.selectionEnd but caret in UI is still in the end 🤯
Describe the bug
When you click on the input as first time, it's moving the cursor to end of mask characters and can't write anything in the input.
See screen recording below:
Screen.Recording.2023-07-23.at.15.38.59.mov
To Reproduce
Expected behavior
It must move the cursor at the start and it would allow to write in the input.
Environment:
Additional context
I added two event listener that updates the
lazy
option tofalse
when you focus and set ittrue
when you lost the focus on the input. Because I want to show default placeholder until users fill the input.The text was updated successfully, but these errors were encountered: