0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-12 18:18:24 -05:00

🐛 Removing Underline and Strikethrough Affects the Previous Text Object

This commit is contained in:
Alejandro Alonso 2024-06-20 11:49:10 +02:00
parent e5cc262644
commit c35a818d4c
2 changed files with 5 additions and 4 deletions

View file

@ -48,6 +48,7 @@
- Fix validation error when detaching with two nested copies and a swap [Taiga #8095](https://tree.taiga.io/project/penpot/issue/8095)
- Export shapes that are rotated act a bit strange when reimported [Taiga #7585](https://tree.taiga.io/project/penpot/issue/7585)
- Penpot crashes when a new colorpicker is created while uploading an image to another instance [Taiga #8119](https://tree.taiga.io/project/penpot/issue/8119)
- Removing Underline and Strikethrough Affects the Previous Text Object [Taiga #8103](https://tree.taiga.io/project/penpot/issue/8103)
## 2.0.3

View file

@ -32,7 +32,7 @@
(let [{:keys [text-align]} values
handle-change
(mf/use-fn
(mf/deps on-blur)
(mf/deps on-change on-blur)
(fn [value]
(on-change {:text-align value})
(when (some? on-blur) (on-blur))))]
@ -64,7 +64,7 @@
(let [direction (:text-direction values)
handle-change
(mf/use-fn
(mf/deps direction)
(mf/deps on-change on-blur direction)
(fn [value]
(let [dir (if (= value direction)
"none"
@ -93,7 +93,7 @@
vertical-align (or vertical-align "top")
handle-change
(mf/use-fn
(mf/deps on-blur)
(mf/deps on-change on-blur)
(fn [value]
(on-change {:vertical-align value})
(when (some? on-blur) (on-blur))))]
@ -154,7 +154,7 @@
(let [text-decoration (or (:text-decoration values) "none")
handle-change
(mf/use-fn
(mf/deps text-decoration)
(mf/deps on-change on-blur text-decoration)
(fn [value]
(let [decoration (if (= value text-decoration)
"none"