excid3 / tailwindcss-stimulus-components

A set of StimulusJS components for TailwindCSS apps similar to Bootstrap JS components.

Home Page:https://excid3.github.io/tailwindcss-stimulus-components/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue when using `data-tabs-update-anchor-value="true"` and linking to a specific anchor from another page

woller opened this issue · comments

Screen.Recording.2023-10-11.at.09.20.12.mov

As the title says, there seems to be a bug, when I use both data-tabs-update-anchor-value="true" and link to a specific anchor.

Expected behavior
The user clicks a link to a specific anchor and the corresponding tab is selected.

Actual behavior
The user clicks the link, but the first tab is always selected.

I haven't been able to figure out what is going wrong, but if anyone has any pointers, I'll give it another go.

The bug is reproduced in this repo

I'm currently encountering this same issue and I have not been able to find a solution. Any advice/help would greatly be appreciated.