-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Clicking on ui-select's caret does not toggle the dropdown #1797
Comments
As described in the issue template you should add a plunker as this is needed to see the problem. |
seems to be related to search-enabled="false" http://plnkr.co/edit/OqLeViJM7qFYuVFleklj?p=preview UPDATE:
|
Looks like it was probably introduced with this commit - be0d301 |
Using jQuery I did it this way:
|
I'm also experiencing the issue (angular 1.5.8, ui-bootstrap 2.2.0 (if applicable) and tested with ui-select from 0.19.4 to 0.18.0). However changing search-enabled to true or false or removing it completely didnt have any effect. Turned out that the issue is with opacity of the ui-select-dropdown inside the ui-select-container so as a workaround I am toggling it whether the container has class open or not. |
As a temporary fix I used CSS and added |
@artuska, what was the CSS for your solution and what Edit:
|
Issue for us too. |
+1 - this is something that is causing us unexpected grief |
@twh1808 Thanks for your CSS workaround. I found that ui-select also has a wide padding on the ui-select-toggle which prevented clicking on the right half of the arrow glyph in my case.
|
@Red-3, I haven't seen much activity on this so hopefully it's just a temporary workaround but I'm not so sure I'll ever be able to remove it. Glad it was of help to you, @artuska is probably the one to thank though, as his original comment made me realize this could be easily overcome with CSS rather than hack-y JavaScript. I looked into the UI-Select examples to verify your padding comment, and yeah you would have to do something to account for the right side as the element only lays on half of the arrow. I worked with another colleague skinning a large application built on Angular and Angular UI Bootstrap, and in our efforts we changed the padding size and arrow positioning such that this specific issue didn't apply to us. Good catch for others, though! |
I'm using bootstrap + font-awesome with non-transparent search boxes. I had to do the following less to work around it:
|
Maybe somebody could make a good PR for this? |
@mzealy - Thank you.
|
Looks like the pr #2011 has fixed the problem. Could you verify? |
Is there an ETA for a 0.19.9 release to get this fix? |
In bower version it still have the same code
Please update the bower version |
Is it possible to build a new version that contains this fix ? 😉 |
Can we have a new release please? I would like to have this issue fixed. |
So it looks like this was indeed fixed by the PR #2011 on June 15 2017, but a release was never made since then. Are there any maintainers of this repository able to make a new release of the master branch? Otherwise someone with some time on their hands could create a fork and publish a new release to npm under a different name |
Clicking exactly on
does not toggle the dropdown.
Angular: 1.4.9
UI-Select: 0.19.4
Bootstrap theme
The text was updated successfully, but these errors were encountered: