0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-11 23:31:21 -05:00

🐛 Fixed persistent outline after editing

This commit is contained in:
alonso.torres 2020-12-01 14:58:19 +01:00
parent 001f90a540
commit b180d9e878

View file

@ -511,7 +511,10 @@
(ptk/reify ::clear-edition-mode
ptk/UpdateEvent
(update [_ state]
(update state :workspace-local dissoc :edition))))
(let [id (get-in state [:workspace-local :edition])]
(-> state
(update-in [:workspace-local :hover] disj id)
(update :workspace-local dissoc :edition))))))
(defn add-shape