When "ng-select" clicked somewhere outside "dropdown" not closing.
See original GitHub issueExpected 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:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
rxjs.fromEventPattern is not a function
there is error in console. v2.0.0 is for angular 6+https://github.com/ng-select/ng-select#v200