fixes the bug where the Menu is still selected in the LvModal after clicking on the back button

This commit is contained in:
SimonGschnell
2024-09-30 11:20:20 +02:00
parent 8c6f9d1bc4
commit 24a2b4ba2f
+6 -8
View File
@@ -19,14 +19,6 @@ export default {
selectedMenu:null,
}
},
watch:{
isMenuSelected: function (newValue) {
// if no Menu point has been selected, show all Menu options
if (!newValue){
this.selectedMenu = null;
}
}
},
emits:["update:isMenuSelected"],
methods:{
selectMenu: function (menuItem, index = null) {
@@ -62,6 +54,12 @@ export default {
this.selectedMenu = newValue;
this.$emit("update:isMenuSelected", true);
}
},
isMenuSelected: function (newValue) {
// if no Menu point has been selected, show all Menu options
if (!newValue) {
this.selectedMenu = null;
}
}
},
template:/*html*/`