Skip to content

Commit

Permalink
Search Mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ltouroumov committed Feb 5, 2024
1 parent e26e4f4 commit 5220c7b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions components/viewer/modal/ViewSearch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,14 @@ const searchText = ref<string>('');
const searchResults = ref<ResultGroup[]>([]);
const searchView = ref<ResultView | null>(null);
watch(isSearchVisible, (newValue) => {
if (newValue === false) {
searchText.value = '';
searchResults.value = [];
searchView.value = null;
}
});
const search = debounce(() => {
if (!project.value) return;
Expand Down

0 comments on commit 5220c7b

Please sign in to comment.