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

formvalues object is not updated if browser "autofill" is used #16

Open
Nrde opened this issue Mar 16, 2021 · 3 comments
Open

formvalues object is not updated if browser "autofill" is used #16

Nrde opened this issue Mar 16, 2021 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@Nrde
Copy link

Nrde commented Mar 16, 2021

If I use browsers autofill functionality (doubleclick on formfield, select previously filled value from dropdown) the form field object is not updated.

I.e., after doing the above and submitting, the filed(s) and the current object fields filled as above are empty. The onchange event is not triggered. This is happening with Firefox at least.

@Nrde Nrde changed the title forvalues object is not updated if browser "autofill" is used formvalues object is not updated if browser "autofill" is used Mar 16, 2021
@tanepiper
Copy link
Owner

Hi @Nrde - Can you provide a Repl case for it - also have you checked out the custom bindings, can they help?

@tanepiper tanepiper self-assigned this Mar 16, 2021
@tanepiper tanepiper added the question Further information is requested label Mar 16, 2021
@Nrde
Copy link
Author

Nrde commented Mar 16, 2021

It seems to be a problem with (my?) Firefox?
https://svelte.dev/repl/2f4ec8e02cf54b108c2639794fe25c3b?version=3.35.0

@IamSAB
Copy link

IamSAB commented Sep 22, 2021

Still happens in Firefox. More precisely, the values will not update using browser autofill or using field suggestions. But if you submit the form, the corresponding values are as filled in.
However, the problem as the values are only submitValues are up to date, but not formValues, form validation is hindered and if you don't use submit, then you have incomplete values.

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

No branches or pull requests

3 participants