Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested Dropdown closes parent #802

Closed
slubowsky opened this issue Jul 29, 2016 · 0 comments
Closed

Nested Dropdown closes parent #802

slubowsky opened this issue Jul 29, 2016 · 0 comments

Comments

@slubowsky
Copy link

slubowsky commented Jul 29, 2016

I want to have nested dropdowns. Right now this doesn't seem to work because DropdownService (in DropdownService.open) ensures that only one dropdown can be open at a time - even if I set the outer one to autoclose=disabled. Clicking on the nested sub dropdown to open it, causes the parent dropdown to close which of course makes this one not visible too.

I attempted to prevent the service from getting the event by binding to click and calling event.preventDefault() and event.stopPropagation() on my button with the dropdownToggle directive but that doesn't seem to be preventing the event from reaching the service. Even handling isOpen myself and not using the dropdownToggle directive at all doesnt help since at the end of the day DropdownService.open gets called.

Can the service be made to not close other dropdowns that are set to autoclose=disabled or am I perhaps just not going about this correctly?

valorkin added a commit that referenced this issue Mar 24, 2017
fixes #1674, fixes #1749, fixes #1623, fixes #1415, fixes #802, fixes #569, fixes #530, fixes #6,
fixes #1540, fixes #1217, fixes #591, fixes #478
valorkin added a commit that referenced this issue Mar 24, 2017
fixes #1674, fixes #1749, fixes #1623, fixes #1415, fixes #802, fixes #569, fixes #530, fixes #6,
fixes #1540, fixes #1217, fixes #591, fixes #478
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants