Skip to content

Commit

Permalink
Set "phx-debounce": "blur" to most fields.
Browse files Browse the repository at this point in the history
  • Loading branch information
wintermeyer committed Feb 29, 2024
1 parent c026eda commit 96ee1e2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/animina_web/live/root_live.ex
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ defmodule AniminaWeb.RootLive do
required: true,
autofocus: true,
autocomplete: :username,
"phx-debounce": "300"
"phx-debounce": "200"
) %>
<.error :for={msg <- get_field_errors(f[:username], :username)}>
Expand Down Expand Up @@ -166,7 +166,7 @@ defmodule AniminaWeb.RootLive do
type: :email,
required: true,
autocomplete: :email,
"phx-debounce": "300"
"phx-debounce": "200"
) %>
<.error :for={msg <- get_field_errors(f[:email], :email)}>
Expand All @@ -192,7 +192,7 @@ defmodule AniminaWeb.RootLive do
placeholder: gettext("Password"),
value: f[:password].value,
autocomplete: "new-password",
"phx-debounce": "300"
"phx-debounce": "blur"
) %>
<.error :for={msg <- get_field_errors(f[:password], :password)}>
Expand All @@ -218,7 +218,7 @@ defmodule AniminaWeb.RootLive do
placeholder: "",
value: f[:birthday].value,
autocomplete: "bday",
"phx-debounce": "300"
"phx-debounce": "blur"
) %>
<.error :for={msg <- get_field_errors(f[:birthday], :birthday)}>
Expand Down Expand Up @@ -288,7 +288,7 @@ defmodule AniminaWeb.RootLive do
placeholder: "11011",
value: f[:zip_code].value,
autocomplete: "postal-code",
"phx-debounce": "300"
"phx-debounce": "blur"
) %>
<.error :for={msg <- get_field_errors(f[:zip_code], :zip_code)}>
Expand Down Expand Up @@ -317,7 +317,7 @@ defmodule AniminaWeb.RootLive do
),
placeholder: "160",
value: f[:height].value,
"phx-debounce": "300"
"phx-debounce": "blur"
) %>
<.error :for={msg <- get_field_errors(f[:height], :height)}>
Expand Down Expand Up @@ -345,7 +345,7 @@ defmodule AniminaWeb.RootLive do
),
placeholder: "0151-12345678",
value: f[:mobile_phone].value,
"phx-debounce": "300"
"phx-debounce": "100"
) %>
<.error :for={msg <- get_field_errors(f[:mobile_phone], :mobile_phone)}>
Expand Down

0 comments on commit 96ee1e2

Please sign in to comment.