Skip to content

Commit

Permalink
stop click propagation on switch + item. closes #1051
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelcobain committed Feb 28, 2019
1 parent e855cf9 commit ebbeaef
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions addon/components/paper-switch.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit ebbeaef

Please sign in to comment.