Description
Is your feature request related to a problem? Please describe.
We have a requirement that when the user has scrolled near to the bottom of the suggestion list that we need to load in more suggestions from the server. This can be achieved today but only by breaking encapsulation.
Also - for keyboard only accessibility - the user needs to scroll down the search suggestions to see what is available - though he does see the text change, but I don't think that is enough.
Describe the solution you'd like
It would be good to have this as a public event directly from the <ui5-input>
tag -- maybe something like this:
<ui5-input showSuggestions @suggestion-scroll={{suggestionScroll}}></ui5-input>
The suggestion scroll event could give a reference to the this.Suggestion._getScrollContainer()
so that the caller can check the scroll position if it is near the bottom.
edit:
We also need a callback when the user presses escape key or focus out, some sort of event when the search should clear the previous "transitive search".
Describe alternatives you've considered
onAfterRendering get a handle on input.Suggestions._getScrollContainer()
Promise and manually attach the scroll event listener.
Additional context
Add any other context or screenshots about the feature request here.