Tabs ยท console.warn
tabs: activate("{id}") - no such tab.
Printed by Tabs, prefixed [lattice], since 1.50.0.
Warnings reference › tabs.activate.unknown
- Identifier
tabs.activate.unknown- Raised by
- Tabs
- Since
- 1.50.0
What happened
activate(id) named a tab the strip does not hold. No switch happened, beforeTabChange was not raised, and the call returned false; whichever tab was open stays open.
The fix
Activate by the id from the descriptor you passed in tabs, not by the label. The strip's activeId tells you what is open now.
The smallest fix
createTabs(el, { createGrid, tabs: [{ id: 'open', title: 'Open' }] });
strip.activate('open');
Reference
Covered in full at the API reference.