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

Dropdown auto-close outsideClick not working when used with append-to-body #3645

Closed
Fire-Dragon-DoL opened this issue May 8, 2015 · 4 comments

Comments

@Fire-Dragon-DoL
Copy link

Simple, when append-to-body is set, and auto-close is set to outsideClick, closing behaves like if it has the default value (`always'), I believe it's somewhat related to catching the "onclick" event attached to the wrong element.

Plunkr: http://embed.plnkr.co/WpARFC/preview

@rvanbaalen
Copy link
Contributor

Can you please provide a plunkr so we can reproduce this issue and see what library versions you've used?

@Fire-Dragon-DoL
Copy link
Author

@rvanbaalen Yes, give me a bit. I used the latest (I believe) version, 0.13.0, downloaded from the website (custom build) with templates integrated 5 minutes ago

@Fire-Dragon-DoL
Copy link
Author

@rvanbaalen Here is the plunkr: http://embed.plnkr.co/WpARFC/preview

@Fire-Dragon-DoL
Copy link
Author

I temporary solved this using a simple ng-click on the dropdown-menu item and the function has this code inside

          $event.preventDefault()
          $event.stopPropagation()
          return false;

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

Successfully merging a pull request may close this issue.

4 participants