You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But that doesn't support the back button or autofill.
The original idea to make form reset, autofill, and the back button work was that apps would declare form widgets like this:
<d-combobox><inputname="foo"></d-combobox>
If specified, the <input> in the markup would take the place of the <input attach-point="valueNode"> in the template.
Then, whenever the user reloaded the page or reset the form, the browser would reset the <input name="foo"> to its previous value, and form widgets like Combobox would react to that new value.
However, that was never implemented. And also, it doesn't work for programmatically created form widgets.
The text was updated successfully, but these errors were encountered:
Three cases when form widget values should be filled automatically:
A poor man's solution to make form reset work is to do like Toggle.js does:
But that doesn't support the back button or autofill.
The original idea to make form reset, autofill, and the back button work was that apps would declare form widgets like this:
If specified, the
<input>
in the markup would take the place of the<input attach-point="valueNode">
in the template.Then, whenever the user reloaded the page or reset the form, the browser would reset the
<input name="foo">
to its previous value, and form widgets like Combobox would react to that new value.However, that was never implemented. And also, it doesn't work for programmatically created form widgets.
The text was updated successfully, but these errors were encountered: