Skip to content

Commit 4865f5e

Browse files
committed
but better
1 parent 67ea3cd commit 4865f5e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

paper-input.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,13 @@
306306
},
307307

308308
_onIronInputReady: function() {
309+
// Even though this is only used in the next line, save this for
310+
// backwards compatibility, since the native input had this ID until 2.0.5.
311+
if (!this.$.nativeInput) {
312+
this.$.nativeInput = this.$$('input');
313+
}
309314
if (this.inputElement &&
310-
this._typesThatHaveText.indexOf(this.$$('input').type) !== -1) {
315+
this._typesThatHaveText.indexOf(this.$.nativeInput.type) !== -1) {
311316
this.alwaysFloatLabel = true;
312317
}
313318

0 commit comments

Comments
 (0)