svelte-formula
svelte-formula copied to clipboard
formvalues object is not updated if browser "autofill" is used
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.
Hi @Nrde - Can you provide a Repl case for it - also have you checked out the custom bindings, can they help?
It seems to be a problem with (my?) Firefox? https://svelte.dev/repl/2f4ec8e02cf54b108c2639794fe25c3b?version=3.35.0
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.