Commit a10859d 1 parent 5419f97 commit a10859d Copy full SHA for a10859d
File tree 2 files changed +2
-17
lines changed
fullstack/lib/fullstack_web/live/chat
2 files changed +2
-17
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ flowchart TD
46
46
linkStyle 0 stroke:#757575
47
47
```
48
48
49
-
49
+ .
50
50
51
51
52
52
Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ defmodule FullstackWeb.ChatLive do
66
66
value = { @ text_value }
67
67
phx-mounted = { JS . focus ( ) }
68
68
placeholder = "Say something! "
69
+ autocomplete = "off "
69
70
/>
70
71
</ . simple_form >
71
72
</ section >
@@ -209,22 +210,6 @@ defmodule FullstackWeb.ChatLive do
209
210
|> Enum . count ( )
210
211
end
211
212
212
- defp get_form ( params , action \\ :subimt ) do
213
- params
214
- |> get_changeset ( )
215
- |> Map . put ( :action , action )
216
- |> to_form ( as: :form )
217
- end
218
-
219
- defp get_changeset ( params ) do
220
- data = % { }
221
- types = % { question: :string }
222
-
223
- { data , types }
224
- |> Ecto.Changeset . cast ( params , Map . keys ( types ) )
225
- |> Ecto.Changeset . validate_required ( [ :question ] )
226
- end
227
-
228
213
defp save_message ( message ) do
229
214
Cachex . transaction! ( @ cache , [ "chat" ] , fn cache ->
230
215
messages =
You can’t perform that action at this time.
0 commit comments