diff --git a/CHANGES.md b/CHANGES.md index 10c993b33..b0200d3ae 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -48,6 +48,7 @@ - Fix problem when duplicating grid layout [Github #6391](https://github.com/penpot/penpot/issues/6391) - Fix issue that makes workspace shortcuts stop working [Taiga #11062](https://tree.taiga.io/project/penpot/issue/11062) - Fix problem while syncing library colors and typographies [Taiga #11068](https://tree.taiga.io/project/penpot/issue/11068) +- Fix problem with path edition of shapes [Taiga #9496](https://tree.taiga.io/project/penpot/issue/9496) ## 2.6.2 diff --git a/frontend/src/app/main/data/workspace/edition.cljs b/frontend/src/app/main/data/workspace/edition.cljs index e4fdf6cce..07f61eedd 100644 --- a/frontend/src/app/main/data/workspace/edition.cljs +++ b/frontend/src/app/main/data/workspace/edition.cljs @@ -48,7 +48,7 @@ ptk/UpdateEvent (update [_ state] (-> state - (update :workspace-local dissoc :edition) + (update :workspace-local dissoc :edition :edit-path) (update :workspace-drawing dissoc :tool :object :lock) (dissoc :workspace-grid-edition))) diff --git a/frontend/src/app/main/data/workspace/selection.cljs b/frontend/src/app/main/data/workspace/selection.cljs index d92bfd4a6..3a67bc278 100644 --- a/frontend/src/app/main/data/workspace/selection.cljs +++ b/frontend/src/app/main/data/workspace/selection.cljs @@ -22,6 +22,7 @@ [app.main.data.helpers :as dsh] [app.main.data.modal :as md] [app.main.data.workspace.collapse :as dwc] + [app.main.data.workspace.edition :as dwe] [app.main.data.workspace.specialized-panel :as-alias dwsp] [app.main.data.workspace.undo :as dwu] [app.main.data.workspace.zoom :as dwz] @@ -305,8 +306,9 @@ (watch [_ state _] (let [params-without-board (-> (rt/get-params state) (dissoc :board-id))] - (rx/of ::dwsp/interrupt) - (rx/of (rt/nav :workspace params-without-board {::rt/replace true})))) + (rx/of ::dwsp/interrupt + (dwe/clear-edition-mode) + (rt/nav :workspace params-without-board {::rt/replace true})))) ptk/UpdateEvent (update [_ state]