uNmAnNeR / imaskjs

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

onAccept event are not fired in version 7 when autocomplete by browser #1082

Open bezuglyyvlad opened 6 days ago

bezuglyyvlad commented 6 days ago

Describe the bug Upgraded the package from 6. to 7., and the onAccept and event are not fired. We use React with react-imask and autocomplete for input element.

To Reproduce STR:

  1. Add input with mask (use IMaskInput)
  2. Set mask for example - '00000'
  3. Add autocomplete attribute for input - 'postal-code'
  4. Set autocomplete data (need postal-code data) in browser (example of desktop settings - chrome://settings/addresses)
  5. Enter data in input using autocomplete

CodeSandbox

Expected behavior onAccept fired on IOS Chrome when autocomplete by browser

Environment:

Additional context related closed PR: https://github.com/uNmAnNeR/imaskjs/issues/1047

SOjuD commented 2 days ago

faced with the same issue additional information

mauribuffa commented 2 days ago

I’m running into the same issue with the warning Element value was changed outside of mask. Synchronize mask using mask.updateValue() to work properly.