mirror of
https://github.com/penpot/penpot.git
synced 2025-05-18 04:16:10 +02:00
Merge pull request #641 from penpot/select-all
🐛 Fix behavior of select all command when there are objects outsi…
This commit is contained in:
commit
964dad0d5b
3 changed files with 10 additions and 7 deletions
|
@ -164,11 +164,10 @@
|
|||
(not= (:id common-frame-id) uuid/zero))
|
||||
(-> (get objects common-frame-id)
|
||||
:shapes)
|
||||
(let [frames (cp/select-frames objects)]
|
||||
(->> (if (seq frames)
|
||||
frames
|
||||
(cp/select-toplevel-shapes objects))
|
||||
(map :id)))))
|
||||
(->> (cp/select-toplevel-shapes objects
|
||||
{:include-frames? true
|
||||
:include-frame-children? false})
|
||||
(map :id))))
|
||||
|
||||
is-not-blocked (fn [shape-id] (not (get-in state [:workspace-data
|
||||
:pages-index page-id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue