mirror of
https://codeberg.org/PLG-Development/PLG-MuDiCS
synced 2026-07-05 16:37: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);
|
||||
|
||||
function onclick(e: MouseEvent) {
|
||||
if (menu_options !== null) {
|
||||
if (menu_options.length !== 0) {
|
||||
if (menu_shown) {
|
||||
close_menu();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user