mirror of
https://github.com/penpot/penpot.git
synced 2026-04-27 20:28:11 +00:00
🐛 Fix missing selection after swap (#7104)
This commit is contained in:
parent
4901a80684
commit
537c5ca7b8
@ -988,12 +988,15 @@
|
||||
(into parents-of-swapped)
|
||||
(conj (:id new-shape)))]
|
||||
|
||||
(rx/of
|
||||
(dwu/start-undo-transaction undo-id)
|
||||
(dch/commit-changes changes)
|
||||
(dws/select-shape (:id new-shape) true)
|
||||
(ptk/data-event :layout/update {:ids all-parents :undo-group undo-group})
|
||||
(dwu/commit-undo-transaction undo-id))))))
|
||||
(rx/merge
|
||||
(rx/of
|
||||
(dwu/start-undo-transaction undo-id)
|
||||
(dch/commit-changes changes)
|
||||
(ptk/data-event :layout/update {:ids all-parents :undo-group undo-group})
|
||||
(dwu/commit-undo-transaction undo-id)
|
||||
(dws/deselect-all))
|
||||
(->> (rx/of (dws/select-shape (:id new-shape) false))
|
||||
(rx/delay 1)))))))
|
||||
|
||||
(defn component-multi-swap
|
||||
"Swaps several components with another one"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user