diff --git a/lib/utils/gestures.html b/lib/utils/gestures.html index 04a7c58b32..c968bc914a 100644 --- a/lib/utils/gestures.html +++ b/lib/utils/gestures.html @@ -1072,7 +1072,7 @@ let dy = Math.abs(e.clientY - this.info.y); // find original target from `preventer` for TouchEvents, or `e` for MouseEvents let t = Gestures._findOriginalTarget(/** @type {Event} */(preventer || e)); - if (!t || (canBeDisabled[/** @type {!HTMLElement} */(t).localName] && t.disabled)) { + if (!t || (canBeDisabled[/** @type {!HTMLElement} */(t).localName] && t.hasAttribute('disabled'))) { return; } // dx,dy can be NaN if `click` has been simulated and there was no `down` for `start` diff --git a/test/unit/gestures-elements.html b/test/unit/gestures-elements.html index a6ea460c3f..a7685ee947 100644 --- a/test/unit/gestures-elements.html +++ b/test/unit/gestures-elements.html @@ -251,7 +251,10 @@ } static get properties() { return { - disabled: Boolean + disabled: { + type: Boolean, + reflectToAttribute: true + } }; } constructor() { @@ -303,7 +306,6 @@ -