From a59e4df10457ff84cba0697cc8f1649c136ac848 Mon Sep 17 00:00:00 2001 From: Rob Eisenberg Date: Thu, 18 Jun 2020 15:27:08 -0400 Subject: [PATCH] fix(fast-element): default event handler behavior should be no capture (#3337) --- .../web-components/fast-element/src/directives/binding.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/web-components/fast-element/src/directives/binding.ts b/packages/web-components/fast-element/src/directives/binding.ts index 68403d17023..9288cb9cdec 100644 --- a/packages/web-components/fast-element/src/directives/binding.ts +++ b/packages/web-components/fast-element/src/directives/binding.ts @@ -32,7 +32,7 @@ function triggerBind( ): void { this.source = source; this.context = context; - this.target.addEventListener(this.targetName!, this, true); + this.target.addEventListener(this.targetName!, this); } function normalUnbind(this: BindingBehavior): void { @@ -60,7 +60,7 @@ function contentUnbind(this: BindingBehavior): void { } function triggerUnbind(this: BindingBehavior): void { - this.target.removeEventListener(this.targetName!, this, true); + this.target.removeEventListener(this.targetName!, this); this.source = null; this.context = null; }