Skip to content

Commit 55128b3

Browse files
committed
enhance filter application logic for desktop and mobile
1 parent 9ae03fc commit 55128b3

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

src/components/Explorer.vue

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2689,10 +2689,18 @@ export default {
26892689
this.filtersOpen = false;
26902690
},
26912691
applyDrawerFilters() {
2692-
// Apply current filterValues without changing activeSearch/q semantics.
2692+
// Match desktop behavior: if user typed trigger words / search text, confirm it on Apply.
2693+
const queryText = (this.q || "").trim();
2694+
if (queryText) {
2695+
this.handleSearchSubmit();
2696+
return;
2697+
}
2698+
// Otherwise, apply current filterValues without changing activeSearch semantics.
26932699
this.showAutocomplete = false;
26942700
this.submit();
2695-
this.filtersOpen = false;
2701+
if (!this.isDesktop()) {
2702+
this.filtersOpen = false;
2703+
}
26962704
},
26972705
onFiltersKeydown(event) {
26982706
if (!this.filtersOpen) return;

0 commit comments

Comments
 (0)