uNmAnNeR / imaskjs

vanilla javascript input mask
https://imask.js.org
MIT License
4.96k stars 258 forks source link

IMaskMixin focus and controlled issue #1066

Closed BrendanThysse closed 3 months ago

BrendanThysse commented 3 months ago

Describe the bug When using the IMaskMixin in a controlled manner without a mask, I need to double click to get focus of the input and then the input loses focus on each character type.

To Reproduce Find code example: https://codesandbox.io/p/sandbox/imask-jythgk

Expected behavior I should be able to only click once to focus input and focus should not be lost on key press.

Environment:

BrendanThysse commented 3 months ago

Resolved by moving the IMaskMixin out of the component