diff --git a/web/src/app/browser/src/context/attachmentEngine.ts b/web/src/app/browser/src/context/attachmentEngine.ts index e20c785f23..bef61cb002 100644 --- a/web/src/app/browser/src/context/attachmentEngine.ts +++ b/web/src/app/browser/src/context/attachmentEngine.ts @@ -807,10 +807,9 @@ export class AttachmentEngine extends EventEmitter { if(!this.keyman.util.device.touchable) { this.listInputs(); } else if(this.keyman.util.device.touchable) { // If something was added or removed, chances are it's gonna mess up our touch-based layout scheme, so let's update the touch elements. - var domManager = this; - window.setTimeout(function() { - domManager.listInputs(); - }.bind(this), 1); + window.setTimeout(() => { + this.listInputs(); + }, 1); } } }.bind(this);