Search and Top Navigation
#6867 closed bug (fixed)
Opened January 16, 2011 12:42PM UTC
Closed January 16, 2011 09:20PM UTC
Last modified January 16, 2011 09:21PM UTC
Inconsistent ui.panel contents for show event of tabs widget
Reported by: | jorrit | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.8.9 |
Component: | ui.tabs | Version: | 1.8.7 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
When the tabs are loaded, a show event is thrown for the startup tab. The ui attribute of the event handler has a panel member that is set to the associated content panel for the tab. This object is a jQuery instance with one element.
When the user clicks another tab, a show event is triggered. However, the ui.panel attribute now is the plain DOM object.
The work around is trivial: always encapsulate references to ui.panel with jQuery(), but the inconsistency is undocumented and I think it should be fixed.
For a code example, see http://jsfiddle.net/jorrit/Nbr2n/.
Tabs: Pass an element instead of jQuery object on initial show. Fixes #6867 - Inconsistent ui.panel contents for show event of tabs widget.
Changeset: 53dc2d305696c9a347d3bfd113d76e4e47ab8c60