chore: fix issue where popover would not close when clicking inside external editors

This commit is contained in:
Aman Harwara
2023-08-08 16:11:20 +05:30
parent 6bd8a9c4e0
commit cd1b488769

View File

@@ -122,6 +122,13 @@ const PositionedPopoverContent = ({
} }
} }
}} }}
onBlur={() => {
setTimeout(() => {
if (document.activeElement && document.activeElement.tagName === 'IFRAME') {
togglePopover?.()
}
})
}}
> >
{children} {children}
</div> </div>