Skip to content

1.7.12 inert change on root element breaks Dialog sidebar use cases #2531

Closed
@samesfahani-tuplehealth

Description

@samesfahani-tuplehealth

What package within Headless UI are you using?

@headlessui/react

What version of that package are you using?

For example: v1.7.11

What browser are you using?

Chrome

Reproduction URL

Working example: https://stackblitz.com/edit/vitejs-vite-fpxdgf?file=package.json
Broken example: https://stackblitz.com/edit/vitejs-vite-ldjlty?file=package.json

The only difference between the two are @headlessui/react versions.

Describe your issue

We have a unique use case where we want to display a modal on top of the main app section while allowing our sidebar sections to be interactive. In fact this was one of the main reasons we even opted to use headlessui in the first place since it would allow for these customizations.

#2290 has broken that assumption since it marks the root element inert, which is not what we want.

1.7.11 DOM

image

1.7.12 DOM

image

I realize this probably isn't the most common use case, but I need a way to opt out. Could this be fine tuned via a prop?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions