From 8254af27cb7b7eebf56dd6d17425f4e75a3945ad Mon Sep 17 00:00:00 2001 From: Alonso Torres Date: Thu, 24 Jul 2025 08:54:07 +0200 Subject: [PATCH] :bug: Fix problem when changing between flex/grid layout (#6949) --- CHANGES.md | 1 + .../main/ui/workspace/sidebar/options/menus/layout_item.cljs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index d50713d56e..21509e5061 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -47,6 +47,7 @@ - Fix remove color button in the gradient editor [Taiga #11623](https://tree.taiga.io/project/penpot/issue/11623) - Fix "Copy as SVG" generates different code from the Inspect panel [Taiga #11519](https://tree.taiga.io/project/penpot/issue/11519) - Fix overriden tokens in text copies are not preserved [Taiga #11486](https://tree.taiga.io/project/penpot/issue/11486) +- Fix problem when changing between flex/grid layout [Taiga #11625](https://tree.taiga.io/project/penpot/issue/11625) ## 2.8.1 (Unreleased) diff --git a/frontend/src/app/main/ui/workspace/sidebar/options/menus/layout_item.cljs b/frontend/src/app/main/ui/workspace/sidebar/options/menus/layout_item.cljs index 8b81bdba8e..31d35d2062 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/options/menus/layout_item.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar/options/menus/layout_item.cljs @@ -310,7 +310,7 @@ :id "align-self-end"}]]) (mf/defc layout-item-menu - {::mf/memo #{:ids :values :type :is-layout-child? :is-grid-parent :is-flex-parent?} + {::mf/memo #{:ids :values :type :is-layout-child? :is-grid-parent :is-flex-parent? :is-grid-layout? :is-flex-layout?} ::mf/props :obj} [{:keys [ids values ^boolean is-layout-child?