Skip to content

Commit

Permalink
ensure a Dialog.Panel exists
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinMalfait committed Jun 2, 2022
1 parent aeac5d0 commit a31e594
Showing 1 changed file with 5 additions and 3 deletions.
Expand Up @@ -889,9 +889,11 @@ describe('Mouse interactions', () => {
return (
<div onClick={wrapperFn}>
<Dialog open={isOpen} onClose={setIsOpen}>
Contents
<button onClick={() => setIsOpen(false)}>Inside</button>
<TabSentinel />
<Dialog.Panel>
Contents
<button onClick={() => setIsOpen(false)}>Inside</button>
<TabSentinel />
</Dialog.Panel>
</Dialog>
</div>
)
Expand Down

0 comments on commit a31e594

Please sign in to comment.