fix(control): remove empty menu object on every button

This commit is contained in:
E44
2026-01-03 15:15:05 +01:00
parent 0a35fcc543
commit 3f7fc30ce2
@@ -35,7 +35,7 @@
let position_bottom = $state(true); let position_bottom = $state(true);
function onclick(e: MouseEvent) { function onclick(e: MouseEvent) {
if (menu_options !== null) { if (menu_options.length !== 0) {
if (menu_shown) { if (menu_shown) {
close_menu(); close_menu();
} else { } else {