Make event notification handler read the value from currentTarget, (#5309)

instead of target which may not be bound to any data.

Fixes https://github.com/Polymer/polymer/issues/5308
This commit is contained in:
Tomek Wytrębowicz
2018-08-02 11:46:17 +02:00
committed by Tim van der Lippe
parent d59546dc5c
commit ffe8f7e8dc
2 changed files with 11 additions and 1 deletions
+1 -1
View File
@@ -356,7 +356,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
toPath = Polymer.Path.translate(fromProp, toPath, fromPath);
value = detail && detail.value;
} else {
value = event.target[fromProp];
value = event.currentTarget[fromProp];
}
value = negate ? !value : value;
if (!inst[TYPES.READ_ONLY] || !inst[TYPES.READ_ONLY][toPath]) {