feat(chat): debounce chat input validation
This commit is contained in:
@@ -20,8 +20,8 @@ defmodule SlaxWeb.ChatRoomLive.Edit do
|
|||||||
</:actions>
|
</:actions>
|
||||||
</.header>
|
</.header>
|
||||||
<.simple_form for={@form} id="room-form" phx-change="validate-room" phx-submit="save-room">
|
<.simple_form for={@form} id="room-form" phx-change="validate-room" phx-submit="save-room">
|
||||||
<.input field={@form[:name]} type="text" label="Name" />
|
<.input field={@form[:name]} type="text" label="Name" phx-debounce />
|
||||||
<.input field={@form[:topic]} type="text" label="Topic" />
|
<.input field={@form[:topic]} type="text" label="Topic" phx-debounce />
|
||||||
<:actions>
|
<:actions>
|
||||||
<.button phx-disable-with="Saving..." class="w-full">Save</.button>
|
<.button phx-disable-with="Saving..." class="w-full">Save</.button>
|
||||||
</:actions>
|
</:actions>
|
||||||
|
Reference in New Issue
Block a user