diff --git a/packages/src/components/editable/editable.component.ts b/packages/src/components/editable/editable.component.ts index 045a6b58..d7616cf5 100644 --- a/packages/src/components/editable/editable.component.ts +++ b/packages/src/components/editable/editable.component.ts @@ -454,6 +454,10 @@ export class SlateEditableComponent implements OnInit, OnChanges, OnDestroy { } catch (error) { this.editor.onError({ code: SlateErrorCode.ToSlateSelectionError, nativeError: error }) } + } else if (this.readonly) { + Transforms.deselect(this.editor); + IS_FOCUSED.delete(this.editor); + window.getSelection().removeAllRanges(); } }