🐛 Avoid marking component as touched when moving into a group

This commit is contained in:
Andrés Moya 2022-01-17 15:33:41 +01:00 committed by Andrey Antukh
parent 0895a69bac
commit 87351000ae
2 changed files with 9 additions and 4 deletions

View file

@ -64,6 +64,7 @@
- Restored rules color [Taiga #2460](https://tree.taiga.io/project/penpot/issue/2460) - 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 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) - 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 ### :arrow_up: Deps updates

View file

@ -924,11 +924,13 @@
:operations [{:type :set :operations [{:type :set
:attr :constraints-h :attr :constraints-h
:val (spec/default-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 {:type :set
:attr :constraints-v :attr :constraints-v
:val (spec/default-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) shapes-to-unconstraint)
u-unconstraint-change u-unconstraint-change
@ -939,10 +941,12 @@
:id id :id id
:operations [{:type :set :operations [{:type :set
:attr :constraints-h :attr :constraints-h
:val (:constraints-h obj)} :val (:constraints-h obj)
:ignore-touched true}
{:type :set {:type :set
:attr :constraints-v :attr :constraints-v
:val (:constraints-v obj)}]})) :val (:constraints-v obj)
:ignore-touched true}]}))
shapes-to-unconstraint) shapes-to-unconstraint)
r-reg-change r-reg-change