From d482dee5fd2d8c8d6e106f17c79e7d43b049da7e Mon Sep 17 00:00:00 2001 From: jahorton Date: Wed, 23 Dec 2020 10:12:25 +0700 Subject: [PATCH] fix(web): supplies missing (optional) argument to prevent warnings --- web/source/dom/domEventHandlers.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/source/dom/domEventHandlers.ts b/web/source/dom/domEventHandlers.ts index ea194eef7a..4f00966cbf 100644 --- a/web/source/dom/domEventHandlers.ts +++ b/web/source/dom/domEventHandlers.ts @@ -322,7 +322,8 @@ namespace com.keyman.dom { // Now that we've fully entered the new context, invalidate the context so we can generate initial predictions from it. if(this.keyman.modelManager) { - this.keyman.core.languageProcessor.invalidateContext(); + let outputTarget = dom.Utils.getOutputTarget(lastElem); + this.keyman.core.languageProcessor.invalidateContext(outputTarget); } }