🐛 Fix problem with comments mode not staying

This commit is contained in:
alonso.torres 2023-07-05 15:59:50 +02:00
parent 00450565c8
commit dd9f637f02
2 changed files with 6 additions and 1 deletions

View file

@ -81,7 +81,11 @@
(let [tool (-> (dom/get-current-target event)
(dom/get-data "tool")
(keyword))]
(st/emit! :interrupt (dw/select-for-drawing tool)))))
(st/emit! :interrupt
dw/clear-edition-mode)
;; Delay so anything that launched :interrupt can finish
(st/emit! 100 (dw/select-for-drawing tool)))))
toggle-text-palette
(mf/use-fn