Added animations and fixed a bug with context menus

This commit is contained in:
Aleksi Lassila
2023-08-06 20:27:13 +03:00
parent a98e726612
commit 1a6e33c1ce
7 changed files with 58 additions and 42 deletions

View File

@@ -23,7 +23,7 @@
}
function handleClickOutside(event: MouseEvent) {
if (!menu?.contains(event.target as Node)) {
if (!menu?.contains(event.target as Node) && $contextMenu === id) {
event.preventDefault();
event.stopPropagation();
close();