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
The default autocomplete form has no id attribute, so you are unable to use external buttons to submit the form (<button form="form-id">Submit</button>).
Press enter on keyboard, see alert popup that form was submitted.
Press escape key on wide screen or click "Cancel" button on narrow screen to hide autocomplete panel
Click "External submit" button to submit the form.
No alert pops up this time.
Manually add the id="form-id" attribute to the generated autocomplete form and click the "External submit" button and see the popup does show.
Expected behavior
The <form> element would receive the passed id. This is also useful when we are replacing an existing form with the autocomplete (JavaScript fallback), which already has an id. So if we can assign the id here, the same button can be used to submit whether it's the fallback form or the autocomplete form.
Environment
OS: Linux
Browser: Firefox
Autocomplete version: 1.9.2
The text was updated successfully, but these errors were encountered:
Description
The default autocomplete form has no
id
attribute, so you are unable to use external buttons to submit the form (<button form="form-id">Submit</button>
).Reproduction
Preview →
Steps
id="form-id"
attribute to the generated autocomplete form and click the "External submit" button and see the popup does show.Expected behavior
The
<form>
element would receive the passedid
. This is also useful when we are replacing an existing form with the autocomplete (JavaScript fallback), which already has anid
. So if we can assign theid
here, the same button can be used to submit whether it's the fallback form or the autocomplete form.Environment
The text was updated successfully, but these errors were encountered: