fix check for null in setting attr, fix #120
This commit is contained in:
parent
bdf036c2ef
commit
299bc6d522
@ -159,7 +159,7 @@ To create your own input you can inherit from this class.
|
||||
},
|
||||
|
||||
setAttr: function(attr) {
|
||||
if (this.options[attr]) {
|
||||
if (this.options[attr] !== undefined && this.options[attr] !== null) {
|
||||
this.$input.attr(attr, this.options[attr]);
|
||||
}
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user