Set autofocus on search field

This commit is contained in:
Harshad Sharma 2024-05-21 01:43:22 +05:30
parent d403e5997b
commit fe74397759

View file

@ -70,6 +70,7 @@ defmodule Liliform.Page do
name="search" name="search"
value={@query} value={@query}
phx-keyup="search" phx-keyup="search"
autofocus
/> />
<.icon for="search" size="1.5rem" aria-hidden="true" is-left /> <.icon for="search" size="1.5rem" aria-hidden="true" is-left />
</.control> </.control>