Skip to content

Commit

Permalink
Ensure CE=false after cut
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Aug 9, 2023
1 parent d0b814e commit 798134a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/block-editor/src/components/copy-handler/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ export function useClipboardHandler() {
if ( shouldHandleWholeBlocks && ! expandSelectionIsNeeded ) {
removeBlocks( selectedBlockClientIds );
} else {
event.target.ownerDocument.activeElement.contentEditable = false;
__unstableDeleteSelection();
}
} else if ( event.type === 'paste' ) {
Expand Down

0 comments on commit 798134a

Please sign in to comment.