0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-09 00:10:11 -05:00

Properly check text shape on auto edition mode entering.

This commit is contained in:
Andrey Antukh 2020-07-22 12:19:38 +02:00 committed by Hirunatan
parent 3040bcd6d4
commit d170ff8456

View file

@ -468,8 +468,9 @@
(rx/concat
(rx/of (dwc/commit-changes [rchange] [uchange] {:commit-local? true})
(dws/select-shapes (d/ordered-set id)))
(->> (rx/of (start-edition-mode id))
(rx/observe-on :async)))))))
(when (= :text (:type attrs))
(->> (rx/of (start-edition-mode id))
(rx/observe-on :async))))))))
(defn- calculate-centered-box
[state aspect-ratio]