Skip to content

Commit

Permalink
complete arguments in addEventListener function
Browse files Browse the repository at this point in the history
Signed-off-by: ahaWDY <[email protected]>

complete arguments in addEventListener function
  • Loading branch information
ahaWDY committed Mar 29, 2021
1 parent 96930a2 commit 0ed5972
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/browser/widgets/widget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export function addEventListener<K extends keyof HTMLElementEventMap>(
): Disposable {
element.addEventListener(type, listener, useCapture);
return Disposable.create(() =>
element.removeEventListener(type, listener)
element.removeEventListener(type, listener, useCapture)
);
}

Expand Down

0 comments on commit 0ed5972

Please sign in to comment.