🐛 Fix enable comment mode and insert image keeps on comment mode

This commit is contained in:
Alejandro Alonso 2023-07-25 16:57:39 +02:00
parent 8a3c580d0f
commit 92ee6320f5
2 changed files with 6 additions and 1 deletions

View file

@ -30,7 +30,10 @@
file-id (mf/use-ctx ctx/current-file-id)
on-click
(mf/use-fn #(dom/click (mf/ref-val ref)))
(mf/use-fn
(fn []
(st/emit! :interrupt dw/clear-edition-mode)
(dom/click (mf/ref-val ref))))
on-selected
(mf/use-fn