Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

set back focus

Andras Bacsaie73d86255b95
diff --git a/resources/js/components/MagicBar.vue b/resources/js/components/MagicBar.vue
index c07cd14656..268b5c06c8 100644
--- a/resources/js/components/MagicBar.vue
+++ b/resources/js/components/MagicBar.vue
@@ -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 => {