hide the category dropdown menu when click the item
This commit is contained in:
@@ -99,6 +99,7 @@
|
|||||||
eager location="bottom" max-height="500"
|
eager location="bottom" max-height="500"
|
||||||
:disabled="query.type === 1"
|
:disabled="query.type === 1"
|
||||||
:close-on-content-click="false"
|
:close-on-content-click="false"
|
||||||
|
v-model="categoryMenuState"
|
||||||
@update:model-value="scrollCategoryMenuToSelectedItem">
|
@update:model-value="scrollCategoryMenuToSelectedItem">
|
||||||
<template #activator="{ props }">
|
<template #activator="{ props }">
|
||||||
<div class="d-flex align-center"
|
<div class="d-flex align-center"
|
||||||
@@ -400,6 +401,7 @@ export default {
|
|||||||
totalCount: 1,
|
totalCount: 1,
|
||||||
searchKeyword: '',
|
searchKeyword: '',
|
||||||
currentPageTransactions: [],
|
currentPageTransactions: [],
|
||||||
|
categoryMenuState: false,
|
||||||
alwaysShowNav: mdAndUp.value,
|
alwaysShowNav: mdAndUp.value,
|
||||||
showNav: mdAndUp.value,
|
showNav: mdAndUp.value,
|
||||||
showCustomDateRangeDialog: false,
|
showCustomDateRangeDialog: false,
|
||||||
@@ -789,6 +791,8 @@ export default {
|
|||||||
this.$router.push(this.getFilterLinkUrl());
|
this.$router.push(this.getFilterLinkUrl());
|
||||||
},
|
},
|
||||||
changeCategoryFilter(categoryId) {
|
changeCategoryFilter(categoryId) {
|
||||||
|
this.categoryMenuState = false;
|
||||||
|
|
||||||
if (this.query.categoryId === categoryId) {
|
if (this.query.categoryId === categoryId) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user