diff --git a/CHANGES.md b/CHANGES.md index a4e36f19b..eaf2c59a2 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -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 diff --git a/frontend/src/app/main/ui/workspace/sidebar/options/menus/text.cljs b/frontend/src/app/main/ui/workspace/sidebar/options/menus/text.cljs index 88a14cff0..2f6f6b74c 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/options/menus/text.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar/options/menus/text.cljs @@ -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"