Closed izcream closed 9 months ago
Hey 👋 I tried to recreate the issue but it works fine for me. Can you give more informations about what you want to achieve and more code please?
My test https://codesandbox.io/p/sandbox/cold-bash-hgltfl?file=%2Fsrc%2FApp.tsx%3A6%2C24
i have try with native anchor element(a) like you sandbox but still no luck about it.
i have use solid-start not solid-vitejs(not sure bot are same or not)
below is code
both component="a"
or component={A}
will not navigate me to new url
only this way will navigate me to new url
dependency version information
"@kobalte/core": "^0.9.8",
"@solidjs/router": "^0.8.2",
"solid-js": "^1.7.8",
"solid-start": "^0.2.29"
It looks like closeOnSelect
might have something to do with this issue.
Specifically, if you want to include a link as one of the dropdown menu items it seems like you can do this:
<DropdownMenu.Item asChild closeOnSelect={false}> // note: closeOnSelect={false}
<As component={A} href={"/wherever"}>
<DropdownMenu.ItemLabel>My link</DropdownMenu.ItemLabel>
</As>
</DropdownMenu.Item>
I had a similar issue using Kobalte in an Astro project and @andrewrosss 's solution worked for me. Thanks.
Encountering the same issue using Kobalte in an Astro project. Solved with @andrewrosss 's solution. Many thanks, Andrew!
i have try with native anchor element(a) like you sandbox but still no luck about it. i have use solid-start not solid-vitejs(not sure bot are same or not) below is code
both
component="a"
orcomponent={A}
will not navigate me to new urlonly this way will navigate me to new url
dependency version information
"@kobalte/core": "^0.9.8", "@solidjs/router": "^0.8.2", "solid-js": "^1.7.8", "solid-start": "^0.2.29"
What font is this?
Describe the bug I try to make a simple dropdown menu with
<A>
component on solid-startmy first try code is
with this code it will not navigate to
/login
the second try
its still not navigate to
/login
only this way will navigate me to
/login
how to make anchor link work normally without
onSelect
?ps. sorry if my issue gone wrong
Additional context Add any other context about the problem here.