mirror of
https://github.com/penpot/penpot.git
synced 2025-06-04 12:01:38 +02:00
✨ Fix problem with effects
This commit is contained in:
parent
0358eb51e8
commit
0c1e83e4a6
3 changed files with 8 additions and 2 deletions
|
@ -357,8 +357,8 @@
|
||||||
(rx/of (dwu/start-undo-transaction undo-id)
|
(rx/of (dwu/start-undo-transaction undo-id)
|
||||||
(dc/detach-comment-thread ids)
|
(dc/detach-comment-thread ids)
|
||||||
(dch/commit-changes changes)
|
(dch/commit-changes changes)
|
||||||
(dwu/commit-undo-transaction undo-id)
|
(ptk/data-event :layout/update all-parents)
|
||||||
(ptk/data-event :layout/update all-parents))))
|
(dwu/commit-undo-transaction undo-id))))
|
||||||
|
|
||||||
|
|
||||||
(defn create-and-add-shape
|
(defn create-and-add-shape
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
[app.main.store :as st]
|
[app.main.store :as st]
|
||||||
[app.main.ui.components.dropdown :refer [dropdown]]
|
[app.main.ui.components.dropdown :refer [dropdown]]
|
||||||
[app.main.ui.components.numeric-input :refer [numeric-input]]
|
[app.main.ui.components.numeric-input :refer [numeric-input]]
|
||||||
|
[app.main.ui.hooks :as hooks]
|
||||||
[app.main.ui.icons :as i]
|
[app.main.ui.icons :as i]
|
||||||
[app.util.dom :as dom]
|
[app.util.dom :as dom]
|
||||||
[app.util.i18n :as i18n :refer [tr]]
|
[app.util.i18n :as i18n :refer [tr]]
|
||||||
|
@ -80,6 +81,8 @@
|
||||||
[shape])
|
[shape])
|
||||||
frames (map #(deref (refs/object-by-id (:frame-id %))) old-shapes)
|
frames (map #(deref (refs/object-by-id (:frame-id %))) old-shapes)
|
||||||
|
|
||||||
|
ids (hooks/use-equal-memo ids)
|
||||||
|
|
||||||
selection-parents-ref (mf/use-memo (mf/deps ids) #(refs/parents-by-ids ids))
|
selection-parents-ref (mf/use-memo (mf/deps ids) #(refs/parents-by-ids ids))
|
||||||
selection-parents (mf/deref selection-parents-ref)
|
selection-parents (mf/deref selection-parents-ref)
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
[app.common.data :as d]
|
[app.common.data :as d]
|
||||||
[app.common.types.shape.layout :as ctl]
|
[app.common.types.shape.layout :as ctl]
|
||||||
[app.main.refs :as refs]
|
[app.main.refs :as refs]
|
||||||
|
[app.main.ui.hooks :as hooks]
|
||||||
[app.main.ui.workspace.sidebar.options.menus.blur :refer [blur-menu]]
|
[app.main.ui.workspace.sidebar.options.menus.blur :refer [blur-menu]]
|
||||||
[app.main.ui.workspace.sidebar.options.menus.color-selection :refer [color-selection-menu]]
|
[app.main.ui.workspace.sidebar.options.menus.color-selection :refer [color-selection-menu]]
|
||||||
[app.main.ui.workspace.sidebar.options.menus.component :refer [component-attrs component-menu]]
|
[app.main.ui.workspace.sidebar.options.menus.component :refer [component-attrs component-menu]]
|
||||||
|
@ -36,6 +37,8 @@
|
||||||
layout-item-values (select-keys shape layout-item-attrs)
|
layout-item-values (select-keys shape layout-item-attrs)
|
||||||
[comp-ids comp-values] [[(:id shape)] (select-keys shape component-attrs)]
|
[comp-ids comp-values] [[(:id shape)] (select-keys shape component-attrs)]
|
||||||
|
|
||||||
|
ids (hooks/use-equal-memo ids)
|
||||||
|
|
||||||
is-layout-child-ref (mf/use-memo (mf/deps ids) #(refs/is-layout-child? ids))
|
is-layout-child-ref (mf/use-memo (mf/deps ids) #(refs/is-layout-child? ids))
|
||||||
is-layout-child? (mf/deref is-layout-child-ref)
|
is-layout-child? (mf/deref is-layout-child-ref)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue