Skip to content

Commit

Permalink
make backdrops work in ios
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelcobain committed Dec 29, 2016
1 parent 4155c80 commit 695650f
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions addon/components/paper-backdrop.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,19 @@ export default Component.extend(TransitionMixin, {
original.parent().append(clone);
},

click(e) {
sendClickAction(e) {
e.preventDefault();
this.sendAction('onClick', e);
}
},

click(e) {
this.sendClickAction(e);
},

// needed for iOS
// iOS doesn't trigger a click event on normal divs
// unless we use `cursor: pointer` css
touchEnd(e) {
this.sendClickAction(e);
}
});

0 comments on commit 695650f

Please sign in to comment.