Move to the last active tab after a tab is closed

Hi,

I’m wondering if there is a way to move to the last active tab after a tab is closed.

I tried to use setTabActive(last_active_tab) in onTabClose event handler. But it seems to first selects the last_active_tab and then the previous tab of the closed tab.

Is there a way that I can specify which tab to be active next after a tab is closed?

Thank you!

Hi,

If you close inactive tab, the active tab remains selected. If you close an active tab, the next tab is selected. This is behaviour of the latest tabbar. Isn’t it a desired ?