When selecting a suggestion in core-suggest, the input value is updated, but suggestions are not filtered as they would have been if users typed the same value into the input.
This PR introduces the following:
core-suggest filters suggestions when selecting a suggestion updates the value of the input
A suggest.filter-event is fired, as it would from user keyboard input
This filtering respects disabling via event.preventDefault() on suggest.filter event
Filtering does not occur if core-suggest has a value in the ajax attribute, in which case onAjax is called
When selecting a suggestion in core-suggest, the input value is updated, but suggestions are not filtered as they would have been if users typed the same value into the input.
This PR introduces the following:
suggest.filter
-event is fired, as it would from user keyboard inputevent.preventDefault()
onsuggest.filter
eventajax
attribute, in which case onAjax is called