0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-24 23:49:45 -05:00

🐛 Fix incorrect event handling on component annotation creation

This commit is contained in:
Andrey Antukh 2024-03-04 16:18:57 +01:00
parent ee91ab5dad
commit 85d06b10c2

View file

@ -110,9 +110,10 @@
(let [text (dom/get-value textarea)]
(when-not (str/blank? text)
(reset! editing* false)
(st/emit! (dw/update-component-annotation component-id text))
(when ^boolean creating?
(st/emit! (dw/set-annotations-id-for-create nil)))
(dw/update-component-annotation component-id text))))))
(st/emit! (dw/set-annotations-id-for-create nil))))))))
on-delete-annotation
(mf/use-fn