From 0e7809a8f143860a50f108c55ee2ae4fab882868 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Moya?= Date: Wed, 13 May 2020 15:47:16 +0200 Subject: [PATCH] :bug: Fix refresh of options menu --- .../src/uxbox/main/ui/workspace/sidebar/options/fill.cljs | 4 +++- .../src/uxbox/main/ui/workspace/sidebar/options/stroke.cljs | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/src/uxbox/main/ui/workspace/sidebar/options/fill.cljs b/frontend/src/uxbox/main/ui/workspace/sidebar/options/fill.cljs index b7e2b9949d..3f3b7d340d 100644 --- a/frontend/src/uxbox/main/ui/workspace/sidebar/options/fill.cljs +++ b/frontend/src/uxbox/main/ui/workspace/sidebar/options/fill.cljs @@ -25,7 +25,9 @@ [np op] (let [new-shape (obj/get np "shape") old-shape (obj/get op "shape")] - (and (identical? (:fill-color new-shape) + (and (= (:id new-shape) + (:id old-shape)) + (identical? (:fill-color new-shape) (:fill-color old-shape)) (identical? (:fill-opacity new-shape) (:fill-opacity old-shape))))) diff --git a/frontend/src/uxbox/main/ui/workspace/sidebar/options/stroke.cljs b/frontend/src/uxbox/main/ui/workspace/sidebar/options/stroke.cljs index 33c7adfbe3..a548e5ee81 100644 --- a/frontend/src/uxbox/main/ui/workspace/sidebar/options/stroke.cljs +++ b/frontend/src/uxbox/main/ui/workspace/sidebar/options/stroke.cljs @@ -25,7 +25,9 @@ [np op] (let [new-shape (obj/get np "shape") old-shape (obj/get op "shape")] - (and (identical? (:stroke-style new-shape) + (and (= (:id new-shape) + (:id old-shape)) + (identical? (:stroke-style new-shape) (:stroke-style old-shape)) (identical? (:stroke-alignment new-shape) (:stroke-alignment old-shape))