Skip to content

Commit

Permalink
Fix bug with adding items not updating mark-all checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
PEZ committed Nov 23, 2024
1 parent 16a6e47 commit 04b4005
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/todomvc/views.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
[:form {:on {:submit [[:dom/ax.prevent-default]
[:db/ax.update :app/todo-items maybe-add draft]
[:db/ax.assoc :add/draft ""]
[:dom/ax.set-input-text [:db/get :add/draft-input-element] ""]]}}
[:dom/ax.set-input-text [:db/get :add/draft-input-element] ""]
[:app/ax.set-mark-all-state]]}}
[:input.new-todo {:replicant/on-mount [[:db/ax.assoc :add/draft-input-element :dom/node]]
:type :text
:autofocus true
Expand Down

0 comments on commit 04b4005

Please sign in to comment.