tailwindcss-stimulus-components icon indicating copy to clipboard operation
tailwindcss-stimulus-components copied to clipboard

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

Open woller opened this issue 2 years ago • 1 comments

https://github.com/excid3/tailwindcss-stimulus-components/assets/23448075/63a6662e-4542-45b8-9542-4e33a4af29c3

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

woller avatar Oct 11 '23 07:10 woller

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

snake117 avatar Oct 27 '23 21:10 snake117