mirror of https://github.com/penpot/penpot.git
🐛 Fix remove flex button doesn’t work within variant
This commit is contained in:
parent
ed767d9a5b
commit
e2ce226814
|
|
@ -68,6 +68,7 @@
|
|||
- Fix selected colors not showing colors from children shapes in multiple selection [Taiga #12384](https://tree.taiga.io/project/penpot/issue/12385)
|
||||
- Fix scrollbar issue in design tab [Taiga #12367](https://tree.taiga.io/project/penpot/issue/12367)
|
||||
- Fix library update notificacions showing when they should not [Taiga #12397](https://tree.taiga.io/project/penpot/issue/12397)
|
||||
- Fix remove flex button doesn’t work within variant [Taiga #12314](https://tree.taiga.io/project/penpot/issue/12314)
|
||||
|
||||
## 2.10.1
|
||||
|
||||
|
|
|
|||
|
|
@ -235,13 +235,8 @@
|
|||
[ids]
|
||||
(ptk/reify ::remove-shape-layout
|
||||
ptk/WatchEvent
|
||||
(watch [_ state _]
|
||||
(let [objects (dsh/lookup-page-objects state)
|
||||
ids (->> ids
|
||||
(remove #(->> %
|
||||
(get objects)
|
||||
(ctc/is-variant?))))
|
||||
undo-id (js/Symbol)]
|
||||
(watch [_ _ _]
|
||||
(let [undo-id (js/Symbol)]
|
||||
(rx/of
|
||||
(dwu/start-undo-transaction undo-id)
|
||||
(dwsh/update-shapes ids #(apply dissoc % layout-keys))
|
||||
|
|
|
|||
Loading…
Reference in New Issue