[Bug 12271] <input list=""> needs an event triggered on selection of suggestion

https://www.w3.org/Bugs/Public/show_bug.cgi?id=12271

--- Comment #16 from Ben Bucksch <ben.bucksch@beonex.com> ---
It's in the title and the first lines of the initial description: <input
list=""> with <datalist>. With this, I had a fully functional autocomplete
widget: a textfield with a dropdown, and when the user enters something, we are
searching through the dropdown entires and the one that matches the user's
entry is selected. The user can also select something with the mouse, and
scroll. This whole UI with dropdown and searching and scrolling and keyboard
arrow movements is already implemented by the browser, and is exactly what I
need.

However, I need a different *action* on selection, not insertion of the text.
The only thing missing in the browser/spec was that there was no event fired
which notified me of the important fact that the user selected an entry in the
dropdown, and to stop the default action. There was no way to implement my own
selection action, and this was a total blocker for me, and I had to abandon the
widget and entirely reimplement it myself.

The widget as-is was good for me, all the UI, input handling,etc.. All I wanted
was to control what happens when the user selects an item. The simple addition
of this event would allow me to do a lot more with this autocomplete widget.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Wednesday, 20 March 2013 10:35:46 UTC