Browse Source

style: change focus method

Carson 11 months ago
parent
commit
9008625048
1 changed files with 1 additions and 1 deletions
  1. 1 1
      components/Search/index.vue

+ 1 - 1
components/Search/index.vue

@@ -145,7 +145,7 @@ watchDebounced(
 );
 );
 const searchRecommend = (e) => {
 const searchRecommend = (e) => {
   filterText.value = e.target.innerText
   filterText.value = e.target.innerText
-  input$.value.focus()
+  focused.value = true
 }
 }
 </script>
 </script>
 <template>
 <template>