diff --git a/CHANGES.md b/CHANGES.md index 869f10196..284101a4a 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -64,6 +64,7 @@ - Restored rules color [Taiga #2460](https://tree.taiga.io/project/penpot/issue/2460) - Fix thumbnail not taking frame blending mode [Taiga #2301](https://tree.taiga.io/project/penpot/issue/2301) - Fix import/export with SVG edge cases [Taiga #2389](https://tree.taiga.io/project/penpot/issue/2389) +- Avoid modifying component when moving into a group [Taiga #2534](https://tree.taiga.io/project/penpot/issue/2534) ### :arrow_up: Deps updates diff --git a/frontend/src/app/main/data/workspace.cljs b/frontend/src/app/main/data/workspace.cljs index bb659c98d..9b2e6c1aa 100644 --- a/frontend/src/app/main/data/workspace.cljs +++ b/frontend/src/app/main/data/workspace.cljs @@ -924,11 +924,13 @@ :operations [{:type :set :attr :constraints-h :val (spec/default-constraints-h - (assoc obj :parent-id parent-id :frame-id frame-id))} + (assoc obj :parent-id parent-id :frame-id frame-id)) + :ignore-touched true} {:type :set :attr :constraints-v :val (spec/default-constraints-v - (assoc obj :parent-id parent-id :frame-id frame-id))}]})) + (assoc obj :parent-id parent-id :frame-id frame-id)) + :ignore-touched true}]})) shapes-to-unconstraint) u-unconstraint-change @@ -939,10 +941,12 @@ :id id :operations [{:type :set :attr :constraints-h - :val (:constraints-h obj)} + :val (:constraints-h obj) + :ignore-touched true} {:type :set :attr :constraints-v - :val (:constraints-v obj)}]})) + :val (:constraints-v obj) + :ignore-touched true}]})) shapes-to-unconstraint) r-reg-change