Closed
Description
What package within Headless UI are you using?
@headlessui/react
What version of that package are you using?
1.0.0
What browser are you using?
Chrome
Reproduction repository
https://codesandbox.io/s/gallant-butterfly-wnxjb
Description
When there is no focusable element inside modal, it fails with error There are no focusable elements inside the <FocusTrap />
. I don't know if it's a feature or a bug, but there isn't said in the documentation that Dialog must include at least one focusable element and I totally see a use-case when there are modals without any focusable element. I think it at least should fail with warning instead of fatal error.
Anyways I would like to thank you for the great job you all are doing with the tailwind ecosystem, we really appreciate your work!
Metadata
Metadata
Assignees
Labels
No labels