When onhighlight
fires, the default action is to
update the input value by calling getInputValueFromHighlightedItem
.
However in this example, onhighlight
returns false, preventing that
from happening.
The event onchange
fires when the user clicks an item, or when
the Enter key is pressed when an item is highlighted.
An item is highlighted by the user pressing the UP
or DOWN
arrow keys.