This is a Next.js project bootstrapped with create-next-app
.
First, run the development server:
npm run dev
# or
yarn dev
When using @headlessui/react
v1.2.0, when using the Dialog
component, there is a bug that breaks subsequent dialogs after having opened one, then navigating with a <Link>
and then opening another.
Reproduction steps:
- open dialog on homepage
- navigate to page 2 with the
<Link>
- open dialog on page2
- it should error out
Observation: the headlessui-portal-root
is gone after the page changes