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

Accordion: use of buttons in header #1512

Closed
negberts opened this issue Jan 17, 2017 · 4 comments
Closed

Accordion: use of buttons in header #1512

negberts opened this issue Jan 17, 2017 · 4 comments
Assignees

Comments

@negberts
Copy link

When we use a button or any other element that has a (click) event in the header, the click event of the accordion has preference over the click event of the sub element. Are we doing anything wrong or is this just not possible?

@valorkin
Copy link
Member

Actually I want to replace usage of any <a> tags in templates
because it forces me to use preventDefault
and leads to issues like yours ;(

@valorkin valorkin self-assigned this Jan 18, 2017
@valorkin
Copy link
Member

pls check v1.2.5

@bradenclapp
Copy link

bradenclapp commented Nov 17, 2017

@valorkin I am not entirely sure what the fix would be? I don't want to disable the clicking of the header to drop down the accordion but my clicking of my sub element causes it to drop down.

UPDATE:

<a href dropdownToggle  (click)="$event.stopPropagation(); false;" dropdown class="fa-stack fa-lg">

@valorkin
Copy link
Member

@bradenclapp isolate your events propagation where you don't need it

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

4 participants