You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm currently creating an app with TanStack Start and Router, and I want to use the new components from Base UI (https://base-ui.com/).
Base UI, like Radix UI, allows you to do component composition, by remplacing a base component with a custom one.
Naturally, I want to use the <Link /> component to redirect to another page from my menu, like this:
The <Menu> and <Menu.Item> components have a lot of goodies like focus management and keyboard arrow navigation.
It works without issue with the first menu item and the second one (when I replaced the base <Menu.Item /> with a <a href="" />), but it does not when I use a <Link /> component.
It seems like the <Link /> component does interfere with the event management or props passed by the <Menu.Item /> component?
Which project does this relate to?
Router
Describe the bug
Hi, I'm currently creating an app with TanStack Start and Router, and I want to use the new components from Base UI (https://base-ui.com/).
Base UI, like Radix UI, allows you to do component composition, by remplacing a base component with a custom one.
Naturally, I want to use the
<Link />
component to redirect to another page from my menu, like this:The
<Menu>
and<Menu.Item>
components have a lot of goodies like focus management and keyboard arrow navigation.It works without issue with the first menu item and the second one (when I replaced the base
<Menu.Item />
with a<a href="" />
), but it does not when I use a<Link />
component.It seems like the
<Link />
component does interfere with the event management or props passed by the<Menu.Item />
component?Your Example Website or App
https://stackblitz.com/edit/github-gprc2x45?file=package.json,src%2Froutes%2Findex.tsx,src%2Froutes%2Fabout.tsx
Steps to Reproduce the Bug or Issue
First use case
Menu
Second use case
Menu
Expected behavior
When I pass a
<Link />
component to the<Menu.Item />
component, focus management and keyboard arrow navigation should work correctly.Screenshots or Videos
No response
Platform
Additional context
No response
The text was updated successfully, but these errors were encountered: