diff --git a/front/src/NavBarSearch.vue b/front/src/NavBarSearch.vue index ffdc9d1..06de70b 100644 --- a/front/src/NavBarSearch.vue +++ b/front/src/NavBarSearch.vue @@ -14,8 +14,12 @@ const emit = defineEmits('searchDone') const vMobileFocus = { - mounted: (el, binding) => el.focus(); - } + mounted: (el, binding) => { + if (binding.value) { + el.focus() + } + } + }; function onSearchClick() { if (typeof searchterm.value === "undefined" || searchterm.value === "") {