#6867 closed bug (fixed)
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/.
Change History (2)
comment:1 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 Changed 12 years ago by
Milestone: | 1.9 → 1.8.9 |
---|
Fixed in 1-8-stable in c6394d7afae12739a6302fd84cf15d7e7a2cc482.
Note: See
TracTickets for help on using
tickets.
Tabs: Pass an element instead of jQuery object on initial show. Fixes #6867 - Inconsistent ui.panel contents for show event of tabs widget.