mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 00:12:15 +00:00
fixes the bug where the Menu is still selected in the LvModal after clicking on the back button
This commit is contained in:
@@ -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*/`
|
||||
|
||||
Reference in New Issue
Block a user