Commit da30d3118b
Unsigned
Layout: unified · split
docs/.vitepress/theme/components/Search.vue +7
| @@ -705,6 +705,13 @@ watchDebounced( | |||
| 705 | return | 705 | return |
| 706 | } | 706 | } |
| 707 | 707 | ||
| 708 | // Empty query — clear results and show the empty state | ||
| 709 | if (!filterTextValue.trim()) { | ||
| 710 | results.value = [] | ||
| 711 | enableNoResults.value = false | ||
| 712 | return | ||
| 713 | } | ||
| 714 | |||
| 708 | // Dynamic search options based on matchExact toggle | 715 | // Dynamic search options based on matchExact toggle |
| 709 | const dynamicSearchOptions = { | 716 | const dynamicSearchOptions = { |
| 710 | fuzzy: mode === 'fuzzy' ? (0.3 as number | false) : false, | 717 | fuzzy: mode === 'fuzzy' ? (0.3 as number | false) : false, |