update components

This commit is contained in:
Luke Pulverenti 2016-04-27 00:22:32 -04:00
parent ff79304dee
commit 2ff0f16136
11 changed files with 99 additions and 68 deletions

View file

@ -339,6 +339,12 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
var overlay = /** @type {?} */ (this.currentOverlay());
// Check if clicked outside of top overlay.
if (overlay && this._overlayInPath(Polymer.dom(event).path) !== overlay) {
if (overlay.withBackdrop) {
// There's no need to stop the propagation as the backdrop element
// already got this mousedown/touchstart event. Calling preventDefault
// on this event ensures that click/tap won't be triggered at all.
event.preventDefault();
}
overlay._onCaptureClick(event);
}
},