mirror of
https://github.com/penpot/penpot.git
synced 2026-03-13 05:46:08 +00:00
🐛 Fix grow options not verifying text-editor/v2 (#8571)
This commit is contained in:
@@ -137,12 +137,13 @@
|
||||
(fn [value]
|
||||
(on-blur)
|
||||
(let [uid (js/Symbol)
|
||||
grow-type (keyword value)
|
||||
content (when editor-instance
|
||||
(content/dom->cljs (dwt/get-editor-root editor-instance)))]
|
||||
grow-type (keyword value)]
|
||||
(st/emit! (dwu/start-undo-transaction uid))
|
||||
(when (some? content)
|
||||
(st/emit! (dwt/v2-update-text-shape-content (first ids) content :finalize? true)))
|
||||
(when (features/active-feature? @st/state "text-editor/v2")
|
||||
(let [content (when editor-instance
|
||||
(content/dom->cljs (dwt/get-editor-root editor-instance)))]
|
||||
(when (some? content)
|
||||
(st/emit! (dwt/v2-update-text-shape-content (first ids) content :finalize? true)))))
|
||||
(st/emit! (dwsh/update-shapes ids #(assoc % :grow-type grow-type)))
|
||||
|
||||
(when (features/active-feature? @st/state "render-wasm/v1")
|
||||
|
||||
Reference in New Issue
Block a user