-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Accordion heading checkbox causes page reload in Firefox #5361
Comments
The event triggering will be on the anchor tag of the accordion-heading - see the first paragraph of Known Issues for the accordion documentation: https://angular-ui.github.io/bootstrap/#/accordion The workaround is to create a custom template to use a |
@jssayin, please extend us the courtesy of searching both open and closed issues before posting one. These instructions may also be found in our project documentation. That said, you will need to override the template for accordions as the use of the anchor tag is the culprit here. We went round and round with discussions and had committed a solution that used |
Please note that if you switch to |
That works, thanks for your help. My bad that all my searching for "checkbox in uib bootstrap accordion causes page reload" and things like it did not direct me to the known issue. Thanks! |
Yea, no worries. It's not limited to checkboxes (or accordion for that matter as tabs suffer the same problem). It's any widget, really. Also, for issue linkage, you can see issues #4777, #4533, #4104, and #3199. For the relevant conversation in Bootstrap, see this thread. |
Hey I am having an issue where the usual $event.stopPropagation(); does not work inside the uib-accordion-heading on an input checkbox.
Here is a plunker using the default accordion demo. All I did was add an ng-click to the checkbox in the last accordion.
http://plnkr.co/edit/f0oasawSOktPFQfkFYyM?p=preview
Thanks,
The text was updated successfully, but these errors were encountered: