Skip to content

Commit

Permalink
Disable when CE and draggable are the same element
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Nov 27, 2024
1 parent 57ebc2c commit d89e774
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/block-editor/src/components/rich-text/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,10 @@ export function RichTextWrapper(
aria-multiline={ ! disableLineBreaks }
aria-readonly={ shouldDisableEditing }
{ ...props }
// Unset draggable for contentEditable elements because it will
// interfere with multi block selection when the contentEditable
// and draggable elements are the same element.
draggable={ undefined }
aria-label={
bindingsLabel || props[ 'aria-label' ] || placeholder
}
Expand Down

0 comments on commit d89e774

Please sign in to comment.