Tabs ยท console.warn
tabs: "{name}" is not an event this module emits.
Printed by Tabs, prefixed [lattice], since 1.50.0.
Warnings reference › tabs.on.unknown:*
- Identifier
tabs.on.unknown:*- Raised by
- Tabs
- Since
- 1.50.0
What happened
on() was given an event name the tabs module never emits, so the handler will never run. The subscription is still registered - this is a typo report, not a refusal - and the key carries the name, so two different typos are two lines.
The fix
The strip emits beforeTabChange, tab:changed and tabChange:cancelled. Check the spelling against those.
The smallest fix
strip.on('tab:changed', ({ id }) => history.replaceState(null, '', `#${id}`));
Reference
Covered in full at the API reference.