ngx-typeahead
ngx-typeahead copied to clipboard
Not closing Suggestion list when outside click or input blur
Not closing Suggestion list when outside click or input blur
I have a similar issue. When the user types a value into the input and tabs out of it, the dropdown does not close. I need to have the option of either typing in a value of selecting one from the dropdown. Currently only selecting an option from the list closes the dropdown.
Hi guys, news from this?
I bumped into this too 😞 Here is a workaround that seems to be working.
<input
type="text"
#typeAheadInput
(blur)="onBlur($event, typeAheadInput)"
...
>
onBlur(_event, typeAheadInput) {
typeAheadInput.hideSuggestions()
setTimeout(typeAheadInput.hideSuggestions(), 500)
}