Skip to content

Commit

Permalink
get input even if there is no id
Browse files Browse the repository at this point in the history
  • Loading branch information
cbalit committed Jan 7, 2015
1 parent 99aea30 commit 740ee29
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion html5-paper-input.html
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 740ee29

Please sign in to comment.