From d89e77470964fe15ab76ce9161484a21307a25e3 Mon Sep 17 00:00:00 2001 From: Ella Date: Wed, 27 Nov 2024 16:13:03 +0100 Subject: [PATCH] Disable when CE and draggable are the same element --- packages/block-editor/src/components/rich-text/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/block-editor/src/components/rich-text/index.js b/packages/block-editor/src/components/rich-text/index.js index 8f179d08570ad1..968ad637db49a7 100644 --- a/packages/block-editor/src/components/rich-text/index.js +++ b/packages/block-editor/src/components/rich-text/index.js @@ -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 }