forked from jquery/jquery-ui
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Accordion: modified the _clickhandler and the _toggle routines so tha…
…t called event.preventDefault() in the changestart event disables changing the state of the accordion. I have identified all of the changes with // **CHANGES** comments Ticket #5910 Ticket Name: Accordion: check for event.preventDefault in changestart.
- Loading branch information
Showing
1 changed file
with
45 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 comment
on commit d777d0e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found a small bug. The Icons aren't changing properly. Need to move line 368 to be under line 385. The this.active = clickedIsActive ? $([]) : clicked; line needs to be the last statement in the if block.
this line should be if (!self._trigger( "changestart", null, data )) return false;