From 740ee292ac1f45ee38842786fa0800c185c3ca82 Mon Sep 17 00:00:00 2001 From: cbalit Date: Wed, 7 Jan 2015 11:02:15 +0100 Subject: [PATCH] get input even if there is no id --- html5-paper-input.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/html5-paper-input.html b/html5-paper-input.html index e865082..0cc1dee 100644 --- a/html5-paper-input.html +++ b/html5-paper-input.html @@ -178,7 +178,14 @@ }, ready: function () { this.decorator=this.$.decorator; - this.input=this.$.input; + var input; + if(this.$.input){ + input=this.$.input; + } + else{ + input=this.decorator.getElementsByTagName('input')[0]; + } + this.input=input; }, /** * The `validate` method allow to check the value according to HTML5 validation attributes