0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-04-13 15:31:26 -05:00

🐛 Fix reorder layers with keys not refreshing layout

This commit is contained in:
alonso.torres 2023-01-24 15:30:20 +01:00
parent 02aab37ee7
commit 05d21d7d07

View file

@ -609,6 +609,7 @@
objects (wsh/lookup-page-objects state page-id)
selected-ids (wsh/lookup-selected state)
selected-shapes (map (d/getf objects) selected-ids)
undo-id (js/Symbol)
move-shape
(fn [changes shape]
@ -631,7 +632,10 @@
(pcb/with-objects objects))
selected-shapes)]
(rx/of (dch/commit-changes changes))))))
(rx/of (dwu/start-undo-transaction undo-id)
(dch/commit-changes changes)
(ptk/data-event :layout/update selected-ids)
(dwu/commit-undo-transaction undo-id))))))
;; --- Change Shape Order (D&D Ordering)