Closed Sulfyderz closed 5 months ago
I also came across the same issue.
I also came across the same issue.
Use the version 2.0.0. Not later.
Hey everyone,
I've used the example from the docs and updated the colors to red
and seems to work with JS:
Is the issue still persisting?
Thanks, Zoltan
Describe the bug The JS part of tab doesn't work as expected (described here). I have copied and pasted your example and here are the bugs :
const tabs = new Tabs(tabsElement, tabElements, options, instanceOptions);
, you have to change the position oftabsElement
withtabElements
. Otherwise, the tab doesn't work;options
argument tonew Tabs(tabsElement, tabElements, options, instanceOptions);
, it doesn't take it into consideration at all...defaultTabId
,activeClasses
,inactiveClasses
andonShow
are not taken into consideration;activeClasses
is to usearia-selected:
selector to style the currently active tab.To Reproduce
Expected behavior
const tabs = new Tabs(tabsElement, tabElements, options, instanceOptions);
should work as described here.Desktop:
Additional context