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

Disables form autofill to fix unspecified 'bugs' in Firefox, is there a less disruptive way? #29

Open
q-- opened this issue Jan 7, 2025 · 0 comments

Comments

@q--
Copy link

q-- commented Jan 7, 2025

// fix autofill bugs on page refresh in Firefox
let form = telInput.closest('form');
if (form) {
form.setAttribute('autocomplete', 'off');
}

Is this still relevant? It breaks preserving the form value during session restore / undoing tab close, as well as autocomplete suggestions, for our other form fields.

I can't tell what the bugs mentioned were because the commit message or the comment don't specify.
And, if said bugs still exist, would it also be possible to turn off autocomplete just for the tel input instead of the entire form, or otherwise solve this in a way that's not as disruptive to the user experience?

I might be able to contribute a fix, but not if I don't know what problem this code is supposed to solve in the first place.

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

1 participant