diff --git a/components/ui/SearchInput.vue b/components/ui/SearchInput.vue index 5bd2440..7b03013 100644 --- a/components/ui/SearchInput.vue +++ b/components/ui/SearchInput.vue @@ -11,6 +11,11 @@ const router = useRouter(); const query = defineModel(); const sortBy = defineModel("sortBy"); // new const inputRef = ref(null); +const isMac = ref(false); + +onMounted(() => { + isMac.value = /(Mac|iPhone|iPod|iPad)/i.test(navigator.userAgent); +}); defineExpose({ focus: () => inputRef.value?.focus?.() }); @@ -48,9 +53,9 @@ const goToRandomMaintainer = () => { />