fix jumpy safari
This commit is contained in:
@@ -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('')
|
||||
|
||||
Reference in New Issue
Block a user