forked from shibao/cannery
add debounces to more fields
This commit is contained in:
@ -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") %>
|
||||
|
||||
|
@ -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>
|
||||
|
Reference in New Issue
Block a user