Open
Description
- use a combination of autoselect: true and an onconfirm function which triggers the submit of the form.
- type some content into the input e.g. if you typed "Dav"
- hit return to autoselect the highlighted option e.g. it may have been "Dave Haigh"
- if you're using the entered value of the input to populate the value of the input on next load then the page reloads with only the typed value (Dav) in the input rather than the full text of the item that was autoselected (Dave Haigh)
I believe the onconfirm function is triggering before the autoselected value is set as the value of the input.
Note: To get around this I am using a set timeout in the onconfirm function to delay its triggering, allowing time for the value to be set in the input before it fires the form submit.