Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When autofilling, empty value in Firefox #2785

Open
alxAntipov opened this issue Apr 15, 2024 · 1 comment
Open

When autofilling, empty value in Firefox #2785

alxAntipov opened this issue Apr 15, 2024 · 1 comment

Comments

@alxAntipov
Copy link

  • When autofilling a form, in the input event target.value equals an empty string in the Firefox browser. For example, autofill in the Chrome browser generates 2 events: input and change. And the change event contains a filled string.
  • Reproduction where the input data is filled in correctly in other browsers, but fails to do so in Firefox: https://codepen.io/alxantipov/pen/BaEPEjM
  • OS: Mac OS/Window
  • Browser: Firefox
  • Inputmask 5.0.8
@Techn1c4l
Copy link

This is accepted behavior in Firefox since according to MDN,

Unlike the input event, the change event is not necessarily fired for each alteration to an element's value.

This is true for any input field, even if it has no Inputmask.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants