mirror of
https://github.com/penpot/penpot.git
synced 2025-01-21 06:02:32 -05:00
🐛 Fix add group to graphics and components
This commit is contained in:
parent
2648dc3d27
commit
9ab067b6d8
1 changed files with 4 additions and 4 deletions
|
@ -733,7 +733,7 @@
|
||||||
|
|
||||||
on-group
|
on-group
|
||||||
(mf/use-fn
|
(mf/use-fn
|
||||||
(mf/deps components selected)
|
(mf/deps components selected create-group)
|
||||||
(fn [event]
|
(fn [event]
|
||||||
(dom/stop-propagation event)
|
(dom/stop-propagation event)
|
||||||
(modal/show! :name-group-dialog {:accept create-group})))
|
(modal/show! :name-group-dialog {:accept create-group})))
|
||||||
|
@ -1110,7 +1110,7 @@
|
||||||
|
|
||||||
create-group
|
create-group
|
||||||
(mf/use-fn
|
(mf/use-fn
|
||||||
(mf/deps objects selected on-clear-selection)
|
(mf/deps objects selected on-clear-selection (:object-id @state))
|
||||||
(fn [group-name]
|
(fn [group-name]
|
||||||
(on-clear-selection)
|
(on-clear-selection)
|
||||||
(let [undo-id (js/Symbol)]
|
(let [undo-id (js/Symbol)]
|
||||||
|
@ -1138,7 +1138,7 @@
|
||||||
|
|
||||||
on-group
|
on-group
|
||||||
(mf/use-fn
|
(mf/use-fn
|
||||||
(mf/deps objects selected)
|
(mf/deps objects selected create-group)
|
||||||
(fn [event]
|
(fn [event]
|
||||||
(dom/stop-propagation event)
|
(dom/stop-propagation event)
|
||||||
(modal/show! :name-group-dialog {:accept create-group})))
|
(modal/show! :name-group-dialog {:accept create-group})))
|
||||||
|
@ -1868,7 +1868,7 @@
|
||||||
(seq (:colors selected)))
|
(seq (:colors selected)))
|
||||||
|
|
||||||
open-groups-ref (mf/with-memo [open-status-ref]
|
open-groups-ref (mf/with-memo [open-status-ref]
|
||||||
(-> (l/in [:groups :components])
|
(-> (l/in [:groups :typographies])
|
||||||
(l/derived open-status-ref)))
|
(l/derived open-status-ref)))
|
||||||
|
|
||||||
open-groups (mf/deref open-groups-ref)
|
open-groups (mf/deref open-groups-ref)
|
||||||
|
|
Loading…
Add table
Reference in a new issue