Skip to content

Commit 8f22b2b

Browse files
cmccullohscottgonzalez
authored andcommitted
Tabs: Prevent opening a tab while panels are being animated. Fixes #4771 - Tabs: Occassionally displays multiple tabs when clicked with rotate control using opacity toggle fx.
1 parent 0c82f7e commit 8f22b2b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ui/jquery.ui.tabs.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,7 @@ $.widget( "ui.tabs", {
346346
if ( ( $li.hasClass( "ui-tabs-selected" ) && !o.collapsible) ||
347347
$li.hasClass( "ui-state-disabled" ) ||
348348
$li.hasClass( "ui-state-processing" ) ||
349+
self.panels.filter( ":animated" ).length ||
349350
self._trigger( "select", null, self._ui( this, $show[ 0 ] ) ) === false ) {
350351
this.blur();
351352
return false;

0 commit comments

Comments
 (0)