Skip to content

Commit

Permalink
unlock element on create/copy/duplicate
Browse files Browse the repository at this point in the history
  • Loading branch information
sprocketc committed Jan 8, 2025
1 parent f457159 commit 1b7e38e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/renderer/element/handlers.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,9 @@
(map/remove-nils)
(element/normalize-attrs)
(assoc-parent-id db))
new-el (merge new-el db/default {:id id})
new-el (-> new-el
(dissoc :locked)
(merge db/default {:id id}))
child-els (-> (entities db (set (:children el)))
(vals)
(concat (:content el)))
Expand Down

0 comments on commit 1b7e38e

Please sign in to comment.