Ticket #4097 (closed bug: fixed)

Opened 5 years ago

Last modified 5 years ago

Tab hover class doesn't work for dynamically added tabs

Reported by: onestone Owned by: klaus.hartl
Priority: critical Milestone: 1.7
Component: ui.tabs Version: 1.6rc6
Keywords: tabs hover Cc:
Blocking: Blocked by:

Description

Mouse hover handlers are only binded for static tabs (which were already present when tabs() was called). However, for tabs added using tabs("add", ...), those event handlers are never bound, so their appearance doesn't change when mouse-hovered.

I traced the problem down to _tabify() being called without the 'init' argument in the add() function. The code which binds the events expects 'init' to be defined, but I don't understand the logic well enough to fix this myself.

Change History

comment:1 Changed 5 years ago by scott.gonzalez

  • Priority changed from major to critical
  • Milestone changed from TBD to 1.6

comment:2 Changed 5 years ago by klaus.hartl

  • Owner set to klaus.hartl
  • Status changed from new to assigned

comment:3 Changed 5 years ago by klaus.hartl

  • Status changed from assigned to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.