Ngx-bootstrap: Accordion: use of buttons in header

Created on 17 Jan 2017  路  4Comments  路  Source: valor-software/ngx-bootstrap

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?

comp(accordion)

Most helpful comment

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

All 4 comments

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 ;(

pls check v1.2.5

@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:
```

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

Was this page helpful?
0 / 5 - 0 ratings