You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What package within Headless UI are you using?
"@headlessui/react": "^1.6.3",
What version of that package are you using?
"@headlessui/react": "^1.6.3",
What browser are you using?
Chrome
Reproduction URL
exportconstSidebarFilter: FC<SidebarFilterProps>=({ show, onFilterOptionChanged, onFiltersClose })=>{consthandleClose=useCallback((e)=>{e.preventDefault;console.log('close...');// onFiltersClose();},[]);return(<Transitionshow={show}as={Fragment}>{/* While Dialog wrappered within <Transition /> we shoud not specificed open property here (cause of transition animation.), click outsite of Dialog.panel, it will trigger `onClose` twice */}<Dialogas="div"className="fixed inset-0 z-40 flex sm:hidden"onClose={handleClose}><Dialog.PanelclassName="">{/* Filters */}<divclassName="h-80 w-80 bg-white">ssfwer</div></Dialog.Panel></Dialog></Transition>);};
Describe your issue
while click outside of dialog.panel always trigger onClose twice.
The text was updated successfully, but these errors were encountered:
What package within Headless UI are you using?
"@headlessui/react": "^1.6.3",
What version of that package are you using?
"@headlessui/react": "^1.6.3",
What browser are you using?
Chrome
Reproduction URL
Describe your issue
while click outside of
dialog.panel
always trigger onClose twice.The text was updated successfully, but these errors were encountered: