add debounces to more fields

This commit is contained in:
2024-07-28 12:52:41 -04:00
parent c2ddc2ae0d
commit f25c151956
48 changed files with 822 additions and 783 deletions

View File

@ -29,11 +29,12 @@
<%= label(f, :notes, gettext("Notes"), class: "title text-lg text-primary-600") %>
<%= textarea(f, :notes,
id: "shot-record-form-notes",
class: "input input-primary col-span-2",
id: "shot-record-form-notes",
maxlength: 255,
placeholder: gettext("Really great weather"),
phx_update: "ignore"
phx_debounce: 300,
phx_update: "ignore",
placeholder: gettext("Really great weather")
) %>
<%= error_tag(f, :notes, "col-span-3") %>

View File

@ -108,10 +108,10 @@
>
<%= text_input(f, :search_term,
class: "grow input input-primary",
value: @search,
role: "search",
phx_debounce: 300,
placeholder: gettext("Search shot records")
placeholder: gettext("Search shot records"),
role: "search",
value: @search
) %>
</.form>
</div>