mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-04-20 03:02:41 -04:00
Tabs: Handle empty hrefs for IE6/7 as invalid. Fixes #5755 - Tabs: tabs with an empty href are enabled in IE6/7.
This commit is contained in:
2
ui/jquery.ui.tabs.js
vendored
2
ui/jquery.ui.tabs.js
vendored
@@ -129,7 +129,7 @@ $.widget( "ui.tabs", {
|
||||
self.panels = self.panels.add( self._sanitizeSelector( href ) );
|
||||
// remote tab
|
||||
// prevent loading the page itself if href is just "#"
|
||||
} else if ( href !== "#" ) {
|
||||
} else if ( href && href !== "#" ) {
|
||||
// required for restore on destroy
|
||||
$.data( a, "href.tabs", href );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user