Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

fix(select2): hide dropdown if there are no items to show #1598

Merged
merged 1 commit into from
May 16, 2016

Conversation

torstenrudolf
Copy link
Contributor

this is equivalent to #1588 for bootstrap

the empty dropdown behaviour was especially annoying when using ui-select for tagging without choices.

@user378230
Copy link
Contributor

Is there actually a dropdown displayed? I switched plunkr in #1588 to select2 theme and I didn't see anything that looked wrong.

Can you add a screenshot & plunkr demo of the issue? (And possibly one with your fix?)

@torstenrudolf
Copy link
Contributor Author

@user378230
hmm, it might actually be in a different situation. Namely when you use the ui-select for tagging with tagging-label="false" and no choices.

Please have a look at the following (plunker)[http://plnkr.co/edit/42MxM2XbLiANgr0qPO1K?p=preview]
with the select2-theme you get a dropdown when you click into the input but with the bootstrap theme you don't.

This might be a side affect of #1588

@user378230
Copy link
Contributor

Sorry I was looking at select2 single mode when the problem was in select2 multiple mode.

This looks ok then, thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants