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

fix(accordion): noop header link to avoid page refresh with nested buttons #3300

Closed
wants to merge 1 commit into from

Conversation

bgever
Copy link
Contributor

@bgever bgever commented Feb 16, 2015

When nesting buttons in the header, and calling $event.stopPropagation() in their click handlers would cause a page refresh, because the default empty URL would be executed. By changing this into a noop, the page refresh is prevented. #3299

…nested buttons canceling events

When nesting buttons in the header, and calling `$event.stopPropagation()` in their click handlers would cause a page refresh, because the default empty URL would be executed. By changing this into a noop, the page refresh is prevented. angular-ui#3299
@karianna
Copy link
Contributor

@bgever Are you able to add a test for this?

@maximo72
Copy link

maximo72 commented Mar 4, 2015

+1

@wesleycho
Copy link
Contributor

Landed as 9ca4ec3, thanks!

@wesleycho wesleycho closed this Mar 15, 2015
@karianna karianna added this to the 0.13.0 milestone Mar 16, 2015
@bgever
Copy link
Contributor Author

bgever commented Mar 16, 2015

Awesome, thanks! @karianna I'm not sure how to write the test for this issue.

@wesleycho
Copy link
Contributor

No worries, this isn't something you really can test - it is fine as is.

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

Successfully merging this pull request may close these issues.

4 participants