Skip to content

Commit

Permalink
clear comment form after submit
Browse files Browse the repository at this point in the history
  • Loading branch information
myguidingstar committed Jan 7, 2021
1 parent 552461c commit da11aeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/conduit/ui/comment.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
:diff {[:comment/id (if (= :none id) (tempid/tempid) id)]
state}})])
(if (= :none id)
(comp/set-state! this {})
(comp/set-state! this {:comment/body ""})
(set-editing-comment-id :none))))}
(dom/div :.card-block
(dom/textarea :.form-control
Expand Down

0 comments on commit da11aeb

Please sign in to comment.