Swap the tab holding the selection with its neighbour. Active state rides on the item, so the invariant survives the swap; the selection follows the moved tab.
Swap the tab holding the selection with its neighbour. Active state rides on the item, so the invariant survives the swap; the selection follows the moved tab.