mirror of
https://codeberg.org/PLG-Development/PLG-MuDiCS
synced 2026-07-06 00:47:09 +00:00
fix(control): remove empty menu object on every button
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user