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

Can't click on checkboxes inside Accordion Heading #3145

Closed
CarlosCuevas opened this issue Dec 30, 2014 · 5 comments
Closed

Can't click on checkboxes inside Accordion Heading #3145

CarlosCuevas opened this issue Dec 30, 2014 · 5 comments

Comments

@CarlosCuevas
Copy link

Accordion headings allow for markup but can't put clickable checkboxes inside the heading (as you would be able to using bootstrap on its own [i.e. not angular-ui]).

<accordion-group>
        <accordion-heading>
            I can have markup, too! <input type="checkbox" id="cantTouchThis" class="mcHammer">
        </accordion-heading>
        This is just some content to illustrate fancy headings.
</accordion-group>
@rvanbaalen
Copy link
Contributor

Can you please provide a plunker reproducing this issue? And could you verify for me that this is still an issue if you use the current master branch? A lot of bugs have been fixed lately.

@CarlosCuevas
Copy link
Author

Used the plunker link provided on the accordion example page (http://angular-ui.github.io/bootstrap/#/accordion) as a starting point, which seems to be using the latest version:

http://plnkr.co/edit/QEQoS3V5qcrQkdlL4aIb?p=preview

@karianna karianna added this to the Backlog milestone Mar 31, 2015
@RobJacobs
Copy link
Contributor

You just need to stop the event propagation on the checkbox, adding:

 ng-click="$event.stopPropagation();"

Will fix the problem.

@karianna karianna removed this from the Backlog milestone Mar 31, 2015
@CarlosCuevas
Copy link
Author

thanks

@shilan
Copy link

shilan commented Aug 28, 2015

stopping propagation only solves the problem of clicking the checkbox, but if you bind checkbox to a model and if the checkbox is initially checked then the first two hits won't work properly!

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

No branches or pull requests

5 participants