From 04b400564add2f0e68cd114b4aade383ad08d058 Mon Sep 17 00:00:00 2001 From: PEZ Date: Sun, 24 Nov 2024 00:07:12 +0100 Subject: [PATCH] Fix bug with adding items not updating mark-all checkbox --- src/todomvc/views.cljs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/todomvc/views.cljs b/src/todomvc/views.cljs index 271cbe4..8ba937c 100644 --- a/src/todomvc/views.cljs +++ b/src/todomvc/views.cljs @@ -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