From 48e78125e811f3dc13213ec7987514fd9c13e3be Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Wed, 29 Sep 2021 11:27:37 +0200 Subject: [PATCH] :bug: Fix problems with selection index update --- .../ui/workspace/sidebar/options/shapes/multiple.cljs | 10 ++++++++++ frontend/src/app/worker/selection.cljs | 5 +++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/main/ui/workspace/sidebar/options/shapes/multiple.cljs b/frontend/src/app/main/ui/workspace/sidebar/options/shapes/multiple.cljs index 07dbf09fb..bbad1e169 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/options/shapes/multiple.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar/options/shapes/multiple.cljs @@ -93,6 +93,16 @@ :text :ignore} :svg-raw + {:measure :shape + :layer :shape + :constraint :shape + :fill :shape + :shadow :shape + :blur :shape + :stroke :shape + :text :ignore} + + :bool {:measure :shape :layer :shape :constraint :shape diff --git a/frontend/src/app/worker/selection.cljs b/frontend/src/app/worker/selection.cljs index db60b7f7f..64217e014 100644 --- a/frontend/src/app/worker/selection.cljs +++ b/frontend/src/app/worker/selection.cljs @@ -64,8 +64,9 @@ (get new-objects id))) changed-ids (into #{} - (comp (filter changes?) - (filter #(not= % uuid/zero))) + (comp (filter #(not= % uuid/zero)) + (filter changes?) + (mapcat #(d/concat [%] (cp/get-children % new-objects)))) (set/union (set (keys old-objects)) (set (keys new-objects))))