Ticket #5768 (closed bug: fixed)

Opened 3 years ago

Last modified 2 years ago

Removing selected tab passes bad index to select callback

Reported by: pantsmann Owned by:
Priority: major Milestone: 1.9.0
Component: ui.tabs Version: 1.8.1
Keywords: Cc:
Blocking: Blocked by:

Description

When you remove a selected tab the select callback is triggered. The ui.index value passed in is wrong. It appears to be what the index of the next tab would have been before the tab removal. It should be one less. Thus, while the correct tab is selected the code in the callback may run for the wrong tab.

Change History

comment:1 Changed 2 years ago by scott.gonzalez

  • Status changed from new to closed
  • Resolution set to fixed
  • Milestone changed from TBD to 1.9

This is fixed in master.

Note: See TracTickets for help on using tickets.