Merge "Fix firefox value binding in gr-select with dom-repeat" into stable-2.15

This commit is contained in:
Becky Siegel
2017-11-15 00:16:56 +00:00
committed by Gerrit Code Review

View File

@@ -35,7 +35,14 @@
_updateValue() {
if (this.bindValue) {
// Set for chrome/safari so it happens instantly
this.nativeSelect.value = this.bindValue;
// Async needed for firefox to populate value. It was trying to do it
// before options from a dom-repeat were rendered previously.
// See https://bugs.chromium.org/p/gerrit/issues/detail?id=7735
this.async(() => {
this.nativeSelect.value = this.bindValue;
}, 1);
}
},