mirror of
https://github.com/penpot/penpot.git
synced 2025-02-03 21:09:00 -05:00
🐛 Fix incorrect event handling on component annotation creation
This commit is contained in:
parent
ee91ab5dad
commit
85d06b10c2
1 changed files with 3 additions and 2 deletions
|
@ -110,9 +110,10 @@
|
||||||
(let [text (dom/get-value textarea)]
|
(let [text (dom/get-value textarea)]
|
||||||
(when-not (str/blank? text)
|
(when-not (str/blank? text)
|
||||||
(reset! editing* false)
|
(reset! editing* false)
|
||||||
|
(st/emit! (dw/update-component-annotation component-id text))
|
||||||
(when ^boolean creating?
|
(when ^boolean creating?
|
||||||
(st/emit! (dw/set-annotations-id-for-create nil)))
|
(st/emit! (dw/set-annotations-id-for-create nil))))))))
|
||||||
(dw/update-component-annotation component-id text))))))
|
|
||||||
|
|
||||||
on-delete-annotation
|
on-delete-annotation
|
||||||
(mf/use-fn
|
(mf/use-fn
|
||||||
|
|
Loading…
Add table
Reference in a new issue