Avoids filter sidebar opening right after advanced search is closed on mobile.

This commit is contained in:
mateuswetah 2023-11-28 08:22:52 -03:00
parent 156fabb6ed
commit 985fa400ba
2 changed files with 6 additions and 2 deletions

View File

@ -794,7 +794,9 @@
if (newValue == false){
this.$eventBusSearch.$emit('closeAdvancedSearch');
this.futureSearchQuery = '';
this.isFiltersModalActive = true;
if ( !this.isMobileScreen )
this.isFiltersModalActive = !this.startWithFiltersHidden;
} else {
this.isFiltersModalActive = false;
}

View File

@ -827,7 +827,9 @@
openAdvancedSearch(newValue){
if (newValue == false){
this.$eventBusSearch.$emit('closeAdvancedSearch');
this.isFiltersModalActive = !this.startWithFiltersHidden;
if ( !this.isMobileScreen )
this.isFiltersModalActive = !this.startWithFiltersHidden;
} else {
this.isFiltersModalActive = false;
}