Ticket #6867 (closed bug: fixed)

Opened 4 years ago

Last modified 4 years ago

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:
Blocking: Blocked by:

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

comment:1 Changed 4 years ago by Scott González

  • Status changed from new to closed
  • Resolution set to fixed

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

comment:2 Changed 4 years ago by scott.gonzalez

  • Milestone changed from 1.9 to 1.8.9
Note: See TracTickets for help on using tickets.