diff --git a/src/domobserver.ts b/src/domobserver.ts index e4a3888..d96776b 100644 --- a/src/domobserver.ts +++ b/src/domobserver.ts @@ -586,10 +586,10 @@ class EditContextManager { }) this.measureReq = {read: view => { - this.editContext!.updateControlBounds(view.contentDOM.getBoundingClientRect()) + this.editContext.updateControlBounds(view.contentDOM.getBoundingClientRect()) let sel = getSelection(view.root) if (sel && sel.rangeCount) - this.editContext!.updateSelectionBounds(sel.getRangeAt(0).getBoundingClientRect()) + this.editContext.updateSelectionBounds(sel.getRangeAt(0).getBoundingClientRect()) }} } @@ -618,7 +618,7 @@ class EditContextManager { abort = true return } - this.editContext!.updateText(this.toContextPos(fromA), this.toContextPos(toA), insert.toString()) + this.editContext.updateText(this.toContextPos(fromA), this.toContextPos(toA), insert.toString()) this.to += dLen } off += dLen