-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
ngbDropdownToggle double triggers on child element #803
Comments
@karptonite thnx for reporting, this is indeed a bug on our side (luckily with an easy fix!). What needs changing is this line to listen for child elements as well ( A new test should be added, similar to the existing one: ng-bootstrap/src/dropdown/dropdown.spec.ts Lines 167 to 191 in a173e40
PRs welcomed! |
Is anyone working on this? Otherwise I would try to make a PR. |
@JNKielmann looks like we've got a PR for this one already #810 |
Bug description:
When you have the ngbDropdownToggle on a button element, and a span inside that button element, clicking on the span (inside the button) does not toggle the dropdown (or, more specifically, I think it double-toggles it back to its original state).
This bug is new as of alpha 6--it may be related to the change from HostListener to (click) for handling the event. The bug was observed using chrome version 53.
Link to minimally-working plunker that reproduces the issue:
http://plnkr.co/edit/TyaAkbqHeLq7HidFzpNf?p=preview
Version of Angular, ng-bootstrap, and Bootstrap:
Angular: 2.0.0? whatever the sample plunker defaults to--it does not specify
ng-bootstrap: 1.0.0-alpha.6
Bootstrap: 4.0.0-alpha.4
The text was updated successfully, but these errors were encountered: