mirror of
https://github.com/DirectoryLister/DirectoryLister.git
synced 2025-08-26 07:15:30 +02:00
Select all text on search input focus
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
{% endif %}
|
||||
|
||||
<form action="." method="get" id="search" class="flex-grow group relative block bg-blue-700 rounded-full shadow-inner">
|
||||
<input v-model="search" ref="searchInput"
|
||||
<input v-model="search" ref="searchInput" v-on:focus="$event.target.select()"
|
||||
type="text" name="search" placeholder="Search..." value="{{ search }}"
|
||||
class="bg-transparent placeholder-gray-900 text-white w-full px-10 py-2"
|
||||
>
|
||||
|
Reference in New Issue
Block a user