From 0ed5972b2c7af2b0cc4397bc0eaf9ea159a4883b Mon Sep 17 00:00:00 2001 From: ahaWDY <2503131624@qq.com> Date: Mon, 29 Mar 2021 19:12:23 +0200 Subject: [PATCH] complete arguments in addEventListener function Signed-off-by: ahaWDY <2503131624@qq.com> complete arguments in addEventListener function --- packages/core/src/browser/widgets/widget.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/browser/widgets/widget.ts b/packages/core/src/browser/widgets/widget.ts index e1af24a6daf5e..612ac2139e9b6 100644 --- a/packages/core/src/browser/widgets/widget.ts +++ b/packages/core/src/browser/widgets/widget.ts @@ -203,7 +203,7 @@ export function addEventListener( ): Disposable { element.addEventListener(type, listener, useCapture); return Disposable.create(() => - element.removeEventListener(type, listener) + element.removeEventListener(type, listener, useCapture) ); }