File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -498,21 +498,19 @@ export class SideMenuView<
498
498
}
499
499
const { isDropPoint, isDropWithinEditorBounds, isDragOrigin } = context ;
500
500
501
- if ( ! isDropWithinEditorBounds ) {
501
+ if ( ! isDropWithinEditorBounds && isDropPoint ) {
502
502
// Any time that the drop event is outside of the editor bounds (but still close to an editor instance)
503
503
// We dispatch a synthetic event that is in the bounds of the editor instance, to have the correct drop point
504
504
this . dispatchSyntheticEvent ( event ) ;
505
505
}
506
506
507
- if ( isDropPoint && isDragOrigin ) {
508
- // The current instance is both the drop point and the drag origin
509
- // no-op, normal drop handling will take over
510
- return ;
511
- }
512
-
513
507
if ( isDropPoint ) {
514
- // The current instance is the drop point, but not the drag origin
508
+ // The current instance is the drop point
515
509
510
+ if ( this . pmView . dragging ) {
511
+ // Do not collapse selection when text content is being dragged
512
+ return ;
513
+ }
516
514
// Because the editor selection is unrelated to the dragged content, we
517
515
// don't want PM to delete its content. Therefore, we collapse the
518
516
// selection.
You can’t perform that action at this time.
0 commit comments