set back focus
This commit is contained in:
parent
bbcabc8e71
commit
e73d86255b
1 changed files with 4 additions and 1 deletions
|
|
@ -181,7 +181,7 @@
|
|||
<script setup>
|
||||
import { ref, computed, onMounted, onUnmounted, watch, nextTick } from 'vue'
|
||||
import axios from "axios";
|
||||
const currentFocus = ref()
|
||||
const currentFocus = ref(0)
|
||||
function focusNext(length) {
|
||||
if (currentFocus.value === undefined) {
|
||||
currentFocus.value = 0
|
||||
|
|
@ -338,6 +338,9 @@ watch(showCommandPalette, async (value) => {
|
|||
searchInput.value.focus();
|
||||
}
|
||||
})
|
||||
watch(search, async () => {
|
||||
currentFocus.value = 0
|
||||
})
|
||||
const magic = computed(() => {
|
||||
if (search.value) {
|
||||
return sequenceState.value.magicActions.filter(action => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue