Skip to content

Commit 44e5400

Browse files
GaryJonesclaude
andcommitted
fix: allow text selection in calendar overlay without triggering drag
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>
1 parent 68cc763 commit 44e5400

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
88

99
### Fixed
1010

11+
* fix: allow text selection in calendar overlay without triggering drag by @GaryJones in [#857](https://github.com/Automattic/Edit-Flow/pull/857)
1112
* fix: update post date to current time when publishing from custom status by @GaryJones in [#856](https://github.com/Automattic/Edit-Flow/pull/856)
1213
* fix: resolve calendar drag-and-drop not persisting post date changes by @GaryJones in [#854](https://github.com/Automattic/Edit-Flow/pull/854)
1314
* fix: guard against null return from get_edit_post_link() and get_permalink() by @GaryJones in [#853](https://github.com/Automattic/Edit-Flow/pull/853)

modules/calendar/lib/calendar.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ jQuery( document ).ready( function ( $ ) {
210210
items: 'li.day-item.sortable',
211211
connectWith: 'td.day-unit ul',
212212
placeholder: 'ui-state-highlight',
213+
cancel: '.item-overlay, .item-overlay *, .post-insert-overlay, .post-insert-overlay *',
213214
start( event, ui ) {
214215
$( this ).disableSelection();
215216
edit_flow_calendar_close_overlays();

0 commit comments

Comments
 (0)