Skip to content

Commit 685c015

Browse files
committed
Updated JS.update call
1 parent 96e8642 commit 685c015

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

web/static/exjs/todo.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
defmodule Todo do
22
defp process_event(%KeyboardEvent{"which" => 13} = event) do
33
Todo.Data.add(event.target.value)
4-
JS.update(event.target, "value", "")
4+
JS.update(event.target, object(value: ""))
55
end
66

77
defp process_event(%KeyboardEvent{} = event) do

0 commit comments

Comments
 (0)