From ebbeaefc10687aa76cd667da5a65bda6b6c8639e Mon Sep 17 00:00:00 2001 From: Miguel Andrade Date: Thu, 28 Feb 2019 18:16:11 +0000 Subject: [PATCH] stop click propagation on switch + item. closes #1051 --- addon/components/paper-switch.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/addon/components/paper-switch.js b/addon/components/paper-switch.js index 304e5e2e2..beb5b1490 100644 --- a/addon/components/paper-switch.js +++ b/addon/components/paper-switch.js @@ -108,8 +108,14 @@ export default Component.extend(FocusableMixin, RippleMixin, ColorMixin, Proxiab }, - _handleNativeClick() { - return get(this, 'bubbles'); + _handleNativeClick(ev) { + let bubbles = get(this, 'bubbles'); + + if (!bubbles) { + ev.stopPropagation(); + } + + return bubbles; }, _teardownSwitch() {