fix esc/click out issue

This commit is contained in:
Scott Chacon 2023-03-17 21:03:53 +01:00
parent 6f7121ab99
commit 4df03fbcdc

View File

@ -108,6 +108,9 @@
function checkPaletteModal(event: Event) {
const target = event.target as HTMLElement;
if (!target) {
showPalette = false;
}
if (showPalette !== false && !palette.contains(target)) {
showPalette = false;
}