ui-select icon indicating copy to clipboard operation
ui-select copied to clipboard

Search input focus not switching between two select dropdowns

Open benri opened this issue 12 years ago • 5 comments

There's a bug when you have two select dropdowns with search, and you open one dropdown but before hitting enter or clicking a selection, you click the other dropdown and start typing, the text focus is still on the first dropdown.

Try in this plunkr: http://plnkr.co/edit/wicNNsEWN3VC05PtlEKx?p=preview

The first dropdown closes when clicking outside, but the text focus is not lost, nor is the focus shifted to the second dropdown

benri avatar Oct 01 '14 22:10 benri

Sorry to divert the thread, I hope is fine.
We have an issue on a page with multiple (4) dropdowns, and we can reproduce that issue in a plunkr here as well but for some reason the same issue does not happen in your plunkr.

The issue we have is the following:

  1. click on dropdown A arrow to open it
  2. click on dropdown B arrow to open that instead
  3. expected behaviour:
    • A should close and B should open
  4. actual behaviour:
    • A stays open and B opens, possibly overlapping one another (see picture attached)

Don't know why, but that does not happen in @benri plunkr. Not sure if it's because the two dropdowns there are clones, so they're sharing the same ngModel, same selected element, etc.

image

EDIT
We just tried using distinct ngModels (person and anotherPerson) in @benri plunkr, and the clicks still work okay. So it doesn't seem a matter of ngModel

BrainCrumbz avatar Oct 28 '14 20:10 BrainCrumbz

Anyone has feedback on this? Thanks

BrainCrumbz avatar Nov 25 '14 19:11 BrainCrumbz

Likewise - I am evaluating this new control and have come across this bug within minutes of playing with it. I consider a major bug, so would also like to know if there's any work scheduled on it. Thanks

purestgreen avatar Dec 04 '14 14:12 purestgreen

:+1:

BP18 avatar Jan 21 '15 00:01 BP18

This PR should fix it https://github.com/angular-ui/ui-select/pull/668

dimirc avatar Feb 16 '15 07:02 dimirc