mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Tabs: Pass an element instead of jQuery object on initial show. Fixes #6867 - Inconsistent ui.panel contents for show event of tabs widget.
This commit is contained in:
parent
a7aa65d1fc
commit
c6394d7afa
2
ui/jquery.ui.tabs.js
vendored
2
ui/jquery.ui.tabs.js
vendored
@ -216,7 +216,7 @@ $.widget( "ui.tabs", {
|
|||||||
// seems to be expected behavior that the show callback is fired
|
// seems to be expected behavior that the show callback is fired
|
||||||
self.element.queue( "tabs", function() {
|
self.element.queue( "tabs", function() {
|
||||||
self._trigger( "show", null,
|
self._trigger( "show", null,
|
||||||
self._ui( self.anchors[ o.selected ], self.element.find( self._sanitizeSelector( self.anchors[ o.selected ].hash ) ) ) );
|
self._ui( self.anchors[ o.selected ], self.element.find( self._sanitizeSelector( self.anchors[ o.selected ].hash ) )[ 0 ] ) );
|
||||||
});
|
});
|
||||||
|
|
||||||
this.load( o.selected );
|
this.load( o.selected );
|
||||||
|
Loading…
Reference in New Issue
Block a user