daisyui / react-daisyui

daisyUI components built with React 🌼
http://react.daisyui.com/
MIT License
905 stars 101 forks source link

Broken route transition on Button with Next.js Link component #307

Closed batgos closed 11 months ago

batgos commented 1 year ago

When I use a Button as a child of a Next/Link component with Href, the Next.js client-side route transition is not working and a reload is applied to my app when accessing the page

Example :

import Link from 'next/link';
import { Button } from 'react-daisyui';

<Link href="/admin/staff-invitations" legacyBehavior passHref>
     <Button color="primary">{t('invitation-list')}</Button>
</Link>
dev0T commented 1 year ago

This seems related to #108