mirror of
https://github.com/penpot/penpot.git
synced 2025-02-13 02:28:18 -05:00
Merge pull request #4780 from penpot/superalex-removing-underline-and-strikethrough-affects-the-previous-text-object
🐛 Removing Underline and Strikethrough Affects the Previous Text …
This commit is contained in:
commit
955dadc301
2 changed files with 5 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue