nextui
nextui copied to clipboard
[BUG] - Switching tabs reloads the whole page only after the app has been built
HeroUI Version
2.8.4
Describe the bug
When using HeroUI's Tab component with href prop in a Next.js app, clicking on tabs triggers a full page refresh instead of the expected client-side navigation. This results in slower navigation and loss of component state.
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
- Use Tabs with href in your app
- Build app
- Run the app
- Switch tabs
Expected behavior
Expected Behavior
Tabs should navigate using Next.js client-side routing No page refresh should occur
Current Behavior
Full page refresh occurs when clicking tabs Slower navigation experience
Screenshots or Videos
No response
Operating System Version
macOS
Browser
Chrome
Please share a minimal reproducible sandbox.
closing - inactivity