Opened 9 years ago

Closed 9 years ago

Last modified 7 years ago

#5819 closed bug (worksforme)

parrents tabsshow-event triggerd by childtab

Reported by: Floyd Owned by:
Priority: minor Milestone:
Component: ui.tabs Version: 1.8.2
Keywords: ui.tabs tabshow Cc:
Blocked by: Blocking:

Description

Testcase: http://jsfiddle.net/gjxvq/1/

We have a tab (called firsttab) with in his content another tab (called childtab). We bind the tabshow-event to the firsttab.

if we click to one of the tabs in "firsttab" all work fine (Tab 1 - Tab 5) if we click to one of the "childtab" tabs (Tab 1.1 - Tab 1.3) the tabshow-event who are bind to the first tab is triggerd.

Change History (3)

comment:1 Changed 9 years ago by Floyd

i handle this problem by change my tabsshow-event-funtion from

$("#tabs").bind('tabsshow', 
  function(event, ui) { 
    funcX(ui.index); 
  });

to

$("#tabs").bind('tabsshow', 
  function(event, ui) { 
    if ((/#(.*?)$/im).exec(ui.tab)[1] == this.id)
      funcX(ui.index); 
  });

comment:2 Changed 9 years ago by Scott González

Resolution: worksforme
Status: newclosed

Events bubble; check the target.

comment:3 Changed 7 years ago by Scott González

Milestone: TBD

Milestone TBD deleted

Note: See TracTickets for help on using tickets.