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.

When "ng-select" clicked somewhere outside "dropdown" not closing.

See original GitHub issue

Expected behaviour

When “ng-select” clicked somewhere outside “dropdown” not closing. https://angular-yiiyq6.stackblitz.io

HTML <ng-select placeholder="Seçiniz" [items]="people" bindLabel="name" bindValue="id" [virtualScroll]="true"></ng-select>

TS people = ['Ali', 'Veli', 'Ayşe', 'Fatma'];

Actual behaviour

How do I close “dropdown” when I click on an item other than “ng-select”?

More Info

ng-select version: 2.0.0

browser: All

reproducible in demo page: [YES/NO]

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
varnastadeuscommented, May 14, 2018

rxjs.fromEventPattern is not a function there is error in console. v2.0.0 is for angular 6+

Read more comments on GitHub >

github_iconTop Results From Across the Web

When "ng-select" clicked somewhere outside "dropdown" not ...
When "ng-select " clicked somewhere outside "dropdown" not closing ... do I close "dropdown" when I click on an item other than "ng-select"?...
Read more >
How to detect click event outside Angular component
To go on detection for click outside the component, @HostListener ... Here the click will not work as it detects click within the...
Read more >
Angular Dropdown Menu Close On Click Outside - YouTube
Learn how to implement click outside in Angular. We will create Angular dropdown menu as an example to close when user clicked outside...
Read more >
@ng-select/ng-select - npm
Angular ng-select - All in One UI Select, Multiselect and Autocomplete. Latest version: 10.0.1, last published: a month ago.
Read more >
How can I close a dropdown on click outside?-angular.js
I created a (dropdownOpen) event which I listen to at my ng-select element component and call a function which will close all the...
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