slate-angular 13.0.4 → 13.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2873,7 +2873,9 @@ class SlateEditableComponent {
|
|
|
2873
2873
|
}
|
|
2874
2874
|
onDOMBeforeInput(event) {
|
|
2875
2875
|
const editor = this.editor;
|
|
2876
|
-
|
|
2876
|
+
const root = AngularEditor.findDocumentOrShadowRoot(this.editor);
|
|
2877
|
+
const { activeElement } = root;
|
|
2878
|
+
if (!this.readonly && hasEditableTarget(editor, event.target) && !isTargetInsideVoid(editor, activeElement) && !this.isDOMEventHandled(event, this.beforeInput)) {
|
|
2877
2879
|
try {
|
|
2878
2880
|
const { selection } = editor;
|
|
2879
2881
|
const { inputType: type } = event;
|