question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Typeahead event should be triggered on focus

See original GitHub issue

Current Behavior: Using async operation to bind items, when the user clicks on the ng-select input, asyc event isn’t triggered.

Expected Behavior It should be triggered on input focus itself.

Workaround: (focus)="typeahead.emit()"

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
recaihazercommented, Feb 14, 2019

<ng-select [items]="items$ | async" bindLabel="name" [loading]="loading" [typeahead]="itemsInput$" [(ngModel)]="selectedItems"> </ng-select>

@shyamal890 How could I implement workaround? by adding custom input?

Solved: (focus)=“itemsInput$.next()”

0reactions
shyamal890commented, Feb 10, 2018

So (focus)="typeahead.emit()" is the way to do that or is there a better alternative?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bootstrap - show all Typeahead items on focus - Stack Overflow
In other words, just trigger the event 'propertychange' on your desired event. And the Typehead autocomplete will open.
Read more >
Why Type Ahead Text Control logs onChange Event twice if ...
I'm using Type Ahead Text Control from IBM BPM UI toolkit ; I notice it logs onChange Event twice if an item is...
Read more >
jQuery UI Autocomplete focus Event - GeeksforGeeks
The jQuery UI Autocomplete focus event is used to trigger when the focus is moved to an item (not selecting). Syntax:.
Read more >
Autocomplete Widget - jQuery UI API Documentation
Triggers a search event and invokes the data source if the event is not canceled. Can be used by a selectbox-like button to...
Read more >
.focusout() | jQuery API Documentation
trigger ( "focusout" ) when no arguments are passed. The focusout event is sent to an element when it, or any element inside...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found