Skip to content

Commit 2a0936b

Browse files
committed
feat(web): auto select when click search input
1 parent cffb1ac commit 2a0936b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

web/src/components/SearchBox.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
type="text"
2222
:placeholder="t('nyaa.general.search_placeholder')"
2323
class="flex-1 pl-2 pr-5 py-3 bg-transparent placeholder-gray-600 cursor-pointer focus:cursor-text"
24+
@focus="$event.target.select()"
2425
@blur="$event.relatedTarget !== $refs.button && (isFocused = false)"
2526
@input="setKeyword($event.target.value)"
2627
>

0 commit comments

Comments
 (0)