close sub-nav on click

This commit is contained in:
saml33 2024-03-15 00:47:55 +11:00
parent 47f8bd0fe3
commit 25f6e7905e
1 changed files with 1 additions and 1 deletions

View File

@ -711,7 +711,7 @@ export const ExpandableMenuItem = ({
<h3 className="text-sm font-bold">{panelTitle}</h3>
) : null}
</div>
<div>{children}</div>
<div onClick={() => setIsOpen(false)}>{children}</div>
</div>
</Popover.Panel>
</Transition>