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

Dropdown menu won't automatically close using ui-bootstrap-tpls-0.11.0.js #2600

Closed
mscottindiana opened this issue Aug 18, 2014 · 9 comments
Closed

Comments

@mscottindiana
Copy link

I'm having trouble getting the angular ui dropdown menu to automatically close when using the latest version (11) of the ui-bootstrap-tpls js file. I've created a plunker that uses a stripped-down portion of my application (http://plnkr.co/edit/A1KK44Rqt4v8nC9EahWF?p=preview). I've included the same angular files and bootstrap css that is used in the application. What is weird is that using version 10 of the ui-bootstrap-tpls file WILL automatically close the dropdown menu (http://plnkr.co/edit/ZuPbNHJrn3soO2dg8cWX?p=preview). Any help would be much appreciated!

@mscottindiana
Copy link
Author

I've found that removing the tags from inside the list tags will cause the menu to automatically disappear when the option is clicked. Not sure why that is the case though.

@skorokithakis
Copy link

I have also hit this bug. Which tags are you referring to, @mscottillinois?

@Fingel
Copy link

Fingel commented Aug 19, 2014

+1 Got around it by using a boolean in the scope with is-open, but would rather the things just close.

@mscottindiana
Copy link
Author

Sorry I forgot to state which tags...I found that removing the <a> tags from within the list tags resolved the issue (see http://plnkr.co/edit/xoeHb5Vwb7Xc8Cr2xGQM?p=preview). Not desirable, but not insurmountable either.

@julien-f
Copy link

Probably a duplicate of #2130.

@skorokithakis
Copy link

@RobJacobs That changes the view.

@skorokithakis
Copy link

Sorry, I mean that, when I tried that, it would take me back to the homepage when clicking the link.

@RobJacobs
Copy link
Contributor

Ahh, the plunk wasn't exhibiting that behavior, comments deleted.

@chrisirhc
Copy link
Contributor

This should now be fixed on 0.11.2. Closing. Please re-open with a Plunker if it isn't fixed.

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

No branches or pull requests

6 participants