fix: Fixed issue where Super note would convert whole line into tag even after closing menu

This commit is contained in:
Aman Harwara
2022-12-23 15:03:18 +05:30
parent f3e147f4c9
commit 35b00737bf
6 changed files with 7 additions and 31 deletions

View File

@@ -90,7 +90,7 @@ const PositionedPopoverContent = ({
onKeyDown={(event) => {
if (event.key === 'Escape') {
event.stopPropagation()
togglePopover()
togglePopover?.()
if (anchorElement) {
anchorElement.focus()
}