Error using setValue for an Imagebutton

Imagebutton component setValue function will throw an error:
“Cannot set property ‘value’ of undefined”

Imagebutton template does not use an ‘input’ html element so when the function _setValue routine executes at line 5774, the getInput() will return null and then throw the error.

One suggestion to solve this error would be to not user the ‘button’ routines and override them witha _setValue (and also a _getValue for consistency) in the ‘imagebutton’ component. Starting at line 5925 the code:

_getValue:function(){
return this._settings.label||"";
},
_setValue:function(label){
this._settings.label = label?label:"";
},

Will solve the issue.
Thanks,
Kris

Kris,

Thanks you for the information. We’ll necessary solve the problem in the next version that is going to be released soon.