Skip to content

Commit

Permalink
Ensures clicking pane does not trigger page component click handler
Browse files Browse the repository at this point in the history
  • Loading branch information
cperryk committed Jan 30, 2017
1 parent 4596026 commit 0301964
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions controllers/pane.js
Expand Up @@ -79,6 +79,7 @@ module.exports = function () {
close: function (e) {
var el = this.el;

e.stopPropagation();
if (e.target === e.currentTarget || e.currentTarget.classList.contains('close')) {
// we clicked on the overlay itself
dom.removeElement(el);
Expand Down

0 comments on commit 0301964

Please sign in to comment.