From: Scott González Date: Sun, 16 Jan 2011 21:19:58 +0000 (-0500) Subject: Tabs: Pass an element instead of jQuery object on initial show. Fixes #6867 - Inconsi... X-Git-Tag: 1.8.9~10 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c6394d7afae12739a6302fd84cf15d7e7a2cc482;p=jquery-ui.git Tabs: Pass an element instead of jQuery object on initial show. Fixes #6867 - Inconsistent ui.panel contents for show event of tabs widget. --- diff --git a/ui/jquery.ui.tabs.js b/ui/jquery.ui.tabs.js index 7c615c872..f006c5891 100644 --- a/ui/jquery.ui.tabs.js +++ b/ui/jquery.ui.tabs.js @@ -216,7 +216,7 @@ $.widget( "ui.tabs", { // seems to be expected behavior that the show callback is fired self.element.queue( "tabs", function() { 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 );