diff --git a/CHANGES.md b/CHANGES.md index cb4738617..8e8f78915 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -24,6 +24,7 @@ - Fix Terms and Privacy links overlapping [Taiga #4137](https://tree.taiga.io/project/penpot/issue/4137) - Fix Cannot take out an element from a group at layers panel by drag [Taiga #4209](https://tree.taiga.io/project/penpot/issue/4209) - Fix Internal error when resending invitation email [Taiga #4212](https://tree.taiga.io/project/penpot/issue/4212) +- Fix PDF exportation order [Taiga #4216](https://tree.taiga.io/project/penpot/issue/4216) ## 1.15.3-beta diff --git a/frontend/src/app/main/ui/workspace/header.cljs b/frontend/src/app/main/ui/workspace/header.cljs index bd1228255..63ac5c7d1 100644 --- a/frontend/src/app/main/ui/workspace/header.cljs +++ b/frontend/src/app/main/ui/workspace/header.cljs @@ -6,6 +6,8 @@ (ns app.main.ui.workspace.header (:require + [app.common.pages.helpers :as cph] + [app.common.uuid :as uuid] [app.config :as cf] [app.main.data.events :as ev] [app.main.data.exports :as de] @@ -107,7 +109,9 @@ show-sub-menu? (mf/use-state false) editing? (mf/use-state false) edit-input-ref (mf/use-ref nil) - frames (mf/deref refs/workspace-frames) + objects (mf/deref refs/workspace-page-objects) + frames (->> (cph/get-immediate-children objects uuid/zero) + (filterv cph/frame-shape?)) add-shared-fn #(st/emit! (dwl/set-file-shared (:id file) true))