Skip to content

Commit 6786e44

Browse files
committed
Revert "Don't sync the selection from a rich text edited inside another host"
This reverts commit f209af4.
1 parent 9c8163c commit 6786e44

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

packages/rich-text/src/hook/event-listeners/input-and-selection.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -142,17 +142,6 @@ export default ( props ) => ( element ) => {
142142
return;
143143
}
144144

145-
// When this element is itself focused but nested inside another
146-
// editing host (e.g. an HTML block's static inner blocks), writing
147-
// flow owns its selection; don't self-sync. The editable root host
148-
// case is different: the host holds focus, not this element.
149-
if (
150-
ownerDocument.activeElement === element &&
151-
element.parentElement.closest( '[contenteditable="true"]' )
152-
) {
153-
return;
154-
}
155-
156145
// In case of a keyboard event, ignore selection changes during
157146
// composition.
158147
if ( isComposing ) {

0 commit comments

Comments
 (0)