svelte-formula icon indicating copy to clipboard operation
svelte-formula copied to clipboard

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

Open Nrde opened this issue 4 years ago • 3 comments

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 avatar Mar 16 '21 11:03 Nrde

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

tanepiper avatar Mar 16 '21 13:03 tanepiper

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

Nrde avatar Mar 16 '21 16:03 Nrde

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.

IamSAB avatar Sep 22 '21 08:09 IamSAB