fix jumpy safari

This commit is contained in:
2023-05-21 13:28:02 +02:00
parent e2386ef681
commit 704c955278
5 changed files with 41 additions and 11 deletions

View File

@@ -1,12 +1,17 @@
<script setup lang="ts">
import { notes, findNotes, setActiveNote } from '@/composables/useNotes'
const emit = defineEmits<{
active: [active: boolean]
}>()
const active = ref(false)
watch(active, () => {
if (!active.value) {
query.value = ''
activeResult.value = undefined
}
emit('active', active.value)
})
const query = ref('')