ngx-typeahead icon indicating copy to clipboard operation
ngx-typeahead copied to clipboard

Not closing Suggestion list when outside click or input blur

Open akshaykatale99 opened this issue 5 years ago • 3 comments

Not closing Suggestion list when outside click or input blur

akshaykatale99 avatar Dec 26 '19 15:12 akshaykatale99

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.

sjohnson32 avatar Feb 06 '20 21:02 sjohnson32

Hi guys, news from this?

snill93 avatar Oct 02 '21 08:10 snill93

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)
  }

tatums avatar Oct 18 '22 14:10 tatums