chore: fix issue where popover would not close when clicking inside external editors
This commit is contained in:
@@ -122,6 +122,13 @@ const PositionedPopoverContent = ({
|
||||
}
|
||||
}
|
||||
}}
|
||||
onBlur={() => {
|
||||
setTimeout(() => {
|
||||
if (document.activeElement && document.activeElement.tagName === 'IFRAME') {
|
||||
togglePopover?.()
|
||||
}
|
||||
})
|
||||
}}
|
||||
>
|
||||
{children}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user