Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Select breaks after first selection #655

Closed
jhunken opened this issue Apr 9, 2014 · 4 comments
Closed

Select breaks after first selection #655

jhunken opened this issue Apr 9, 2014 · 4 comments

Comments

@jhunken
Copy link

jhunken commented Apr 9, 2014

The select directive stops working after selecting an option. I have to click elsewhere on the page to take focus from the select in order for it to work again.

To reproduce just go to the official docs:
http://mgcrea.github.io/angular-strap/##selects

Click on the 'Single select' example and select an item. Attempt to use the select directive again, but the dropdowns don't appear. At this point you have to click elsewhere on the page to take focus away before the select will work again.

I see identical behavior in Chrome, FF, and Safari.

@chakming
Copy link

chakming commented Apr 9, 2014

same problem here. need to 'unfocus' then able to select.

@espositocode
Copy link

Hoping this gets fixed soon.

@oaleynik
Copy link

Behind the scenes bsSelect uses tooltip factory, which provides its own hide method with the blur parameter. If this parameter provided and has true value than tooltip component triggers blur on underlying element:
https://github.com/mgcrea/angular-strap/blob/master/src/tooltip/tooltip.js#L248

Here the hide method, which was populated by tooltip factory used without the blur param:
https://github.com/mgcrea/angular-strap/blob/master/src/select/select.js#L195

I have not time to dive deeper into the code, but if use underlying hide method with the true-valued blur than select works as expected.

P.S. if select value using keyboard than controls lost their tab-navigation order...

@lock
Copy link

lock bot commented Jan 26, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot added the outdated label Jan 26, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jan 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants