a/button tag not working inside Listbox.Option #1668
Unanswered
schultzp2020
asked this question in
Help
Replies: 1 comment 3 replies
-
|
Hey! I think you're using the wrong component here, a Listbox is a form control (like a stylable Check out the https://headlessui.com/react/menu |
Beta Was this translation helpful? Give feedback.
3 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.
-
What package within Headless UI are you using?
@headlessui/react
What version of that package are you using?
v1.6.4
What browser are you using?
N/A
Reproduction URL
Reproduction URL
Specifically VersionSelector in
_app.tsxDescribe your issue
The
Listboxdoes not navigate correctly when using aLinktag from Next.js or a regular anchor tag inside ofListbox.Option. After investigating, I have found the href does not fire off every time. Further testing showed if I were to change the Link/a tag to a button tag with anonClickattribute, theonClickfunction has the same issues an an href.Beta Was this translation helpful? Give feedback.
All reactions