Skip to content

Commit

Permalink
contenteditable false when there is multi selection
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Oct 4, 2019
1 parent 4eade53 commit 24f817d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/block-editor/src/components/rich-text/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,7 @@ const RichTextContainer = compose( [
getSettings,
didAutomaticChange,
isMultiSelecting,
hasMultiSelection,
} = select( 'core/block-editor' );

const selectionStart = getSelectionStart();
Expand All @@ -515,7 +516,7 @@ const RichTextContainer = compose( [
selectionEnd: isSelected ? selectionEnd.offset : undefined,
isSelected,
didAutomaticChange: didAutomaticChange(),
isMultiSelecting: isMultiSelecting(),
isMultiSelecting: isMultiSelecting() || hasMultiSelection(),
};
} ),
withDispatch( ( dispatch, {
Expand Down

0 comments on commit 24f817d

Please sign in to comment.