kadoshms / ionic2-autocomplete

Ionic 2 autocomplete component
MIT License
149 stars 108 forks source link

Added events for itemsShown and itemsHidden. The primary use case is … #87

Closed jknisley closed 7 years ago

jknisley commented 7 years ago

…to support auto-scrolling the items list into view if it appears below the bottom of its parent container.

Emitting events in the setter for showList caused them to be handled before the items were actually rendered in the dom. Emitting in ngAfterViewChecked seems reliable.