Open slaterx opened 1 month ago
I do not think this is a bug. If you want to use hyperlink, you should not use TabsTrigger
@thought7878 In this case, how can I hyperlink another tab from the content of a tab?
@thought7878 In this case, how can I hyperlink another tab from the content of a tab?
You can get the DOM of the tab,then trigger the DOM click event in the content of a tab
@thought7878 thank you for your reply. Do you mind sharing a snippet of code explaining how to do that? I'm not an expert and have just started my next.js / shadcn journey...
Describe the bug
For the tab structure below, if we attempt to hyperlink one of the tabs with a tabstrigger:
We get the issue below:
Affected component/components
Tabs
How to reproduce
You can use the page below as an example, just install tabs with shadcn cli and browse to the page.
Codesandbox/StackBlitz link
No need
Logs
System Info
Before submitting