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.

Bug: Clear causes select to lose focus which closes the dropdown

See original GitHub issue

Pressing clear causes ng-select to loose focus causing dropdown to close.

Reproducbile example https://stackblitz.com/edit/ng-select-clear-issue?file=main.ts

To Reproduce Steps to reproduce the behavior (if example is not provided):

  1. Open the dropdown
  2. Click on ‘x’
  3. It would close dropdown, when it should not.

Expected behavior Clear should not close the dropdown

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:5
  • Comments:7

github_iconTop GitHub Comments

1reaction
shyamal890commented, Feb 3, 2020

Hi @varnastadeus can you please have a look at this. Thanks in advance.

0reactions
ZinedineGithubcommented, Mar 23, 2022

Hello, any news for this issue? I’m having the same issue with my parent popover being closed

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dropdown Causes Button To Lose Focus - Stack Overflow
In FireFox, your dropdown becomes the focus. It is not part of the parent element in FF. Chrome treats the dropdown as part...
Read more >
Autocomplete dropdown doesn't close when lost ...
Clicking off the autocomplete to remove focus, the dropdown does not close until the user clicks back into the autocomplete.
Read more >
UI Explorer Element no longer exists Drop Down Closes when ...
The steps are to 'Indicate Element', F2, Click the Drop Down, wait for the timer to stop, Click the Element. This all works...
Read more >
Select | Quasar Framework
The QSelect Vue component has two types of selection - single or multiple. ... status against the 'rules' only after field loses focus...
Read more >
Focus management with Vue refs - Learn web development
So that's it for focus management, and for our app! ... This makes it a reasonable place to move focus to when we...
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