adding
parent
edc8593732
commit
2bbcf33301
|
@ -44,8 +44,6 @@ export class NativeEditContext extends AbstractEditContext {
|
|||
public readonly textArea: FastDomNode<HTMLTextAreaElement>;
|
||||
public readonly domNode: FastDomNode<HTMLDivElement>;
|
||||
|
||||
public ignoreSelectionChange: boolean = false;
|
||||
|
||||
private readonly _editContext: EditContext;
|
||||
private readonly _screenReaderSupport: ScreenReaderSupport;
|
||||
|
||||
|
@ -475,10 +473,6 @@ export class NativeEditContext extends AbstractEditContext {
|
|||
return;
|
||||
}
|
||||
}
|
||||
if (this.ignoreSelectionChange) {
|
||||
this.ignoreSelectionChange = false;
|
||||
return;
|
||||
}
|
||||
const screenReaderContentState = this._screenReaderSupport.screenReaderContentState;
|
||||
if (!screenReaderContentState) {
|
||||
return;
|
||||
|
|
|
@ -248,7 +248,6 @@ if (PasteAction) {
|
|||
result = focusedEditor.getContainerDomNode().ownerDocument.execCommand('paste');
|
||||
textAreaDomNode.textContent = '';
|
||||
if (isHTMLElement(currentFocusedElement)) {
|
||||
nativeEditContext.ignoreSelectionChange = true;
|
||||
currentFocusedElement.focus();
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue