Skip to content

Conversation

@GaryJones
Copy link
Contributor

Summary

On the calendar view, when a user opens an overlay to view post details or editorial metadata, they couldn't select text without inadvertently triggering a drag operation that would move the post to another date.

Changes

Added the cancel option to jQuery UI sortable configuration:

cancel: '.item-overlay, .item-overlay *, .post-insert-overlay, .post-insert-overlay *',

This excludes overlay elements from initiating drag operations, allowing users to:

  • Select and copy text within the expanded post overlay
  • Interact with the quick publish dialog without triggering drags
  • Click on links and buttons inside overlays normally

Test plan

  1. Go to Edit Flow → Calendar
  2. Click on a post to open the overlay
  3. Try to select text within the overlay (post title, editorial metadata, etc.)
  4. Verify text can be selected without the post being dragged
  5. Verify drag-and-drop still works when clicking on the post item itself (outside the overlay)

Fixes #27

🤖 Generated with Claude Code

Added the `cancel` option to jQuery UI sortable configuration to
exclude overlay elements from initiating drag operations. This allows
users to select text within the calendar overlay (editorial metadata,
post details) without accidentally dragging the post to another date.

Fixes #27

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@GaryJones GaryJones requested a review from a team as a code owner December 22, 2025 14:37
@GaryJones GaryJones self-assigned this Dec 22, 2025
@GaryJones GaryJones added this to the Next (minor) milestone Dec 22, 2025
@GaryJones GaryJones merged commit 88befb7 into develop Dec 22, 2025
12 checks passed
@GaryJones GaryJones deleted the fix/27-calendar-text-selection branch December 22, 2025 14:48
@GaryJones GaryJones mentioned this pull request Jan 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Users should be able to select text within the calendar overlay without dragging it

2 participants