could be a Tabs improvement #10686
hellfiremaga
started this conversation in
Ideas
Replies: 1 comment 4 replies
-
|
See #5343; this isn't a supported use case and "fixing" it is very hard. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone
For beginning : I'm not a React dev, nor a javascript dev. I'm a beginner so my problem might be evident and, if so, I'm sorry '^^
Ok so here's my situation : I have a docusaurus page with multible Tabs tag, but each TabItem has a unique value and an id in a h3 tag with the same name
If I load the page with the id of the h3 (page.html#myId), it works for the first tabitem, the one loaded by default. If I try to link to an inactive TabItem, the page stay at the top, like with an inexistant Id. I presume the tag does not exist, so it seems logical.
I tried multiple way to load the page with the "good" TabItem selected, but nothing works actually. I tried the useState with a javascript code that return the tabs code, but actually no solution comes to me.
Anyone has an idea ? maybe I'm just missing an evident function of the API ?
Beta Was this translation helpful? Give feedback.
All reactions