Skip to content

feat: add opt+drag to clone array items in CMS doc editor#979

Draft
jeremydw wants to merge 9 commits intomainfrom
feat/opt-drag-clone-array-items
Draft

feat: add opt+drag to clone array items in CMS doc editor#979
jeremydw wants to merge 9 commits intomainfrom
feat/opt-drag-clone-array-items

Conversation

@jeremydw
Copy link
Member

Adds the ability to hold Option (Alt) while dragging array items in the CMS doc editor to clone them instead of moving them.

Changes

  • Track Alt/Option key state via a ref in the ArrayField component
  • On drag end, if Alt is held, dispatch a new cloneTo action instead of moveTo
  • The cloneTo reducer action deep-clones the dragged item's data and inserts it at the drop position while keeping the original in place

@jeremydw jeremydw force-pushed the feat/opt-drag-clone-array-items branch from 790f957 to 5b20e90 Compare March 22, 2026 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant