PDA

View Full Version : [FIXED]Ext.form.Field#setRawValue doesn't check this.rendered



azbok
5 Aug 2009, 12:18 PM
I noticed there's other getValue() and setValue() fns in the form widgets that check rendered, so setRawValue probably should check too?

I have a field with a validator function which references a field which is later on in the form and makes sure the field is empty upon a certain condition. I was getting that the dom element didn't exist (which makes sense since it's not rendered yet!).



Ext.override(Ext.form.Field, {
setRawValue : function(v){
return this.rendered ? (this.el.dom.value = (Ext.isEmpty(v) ? '' : v)) : '';
}
});



P.S. I like the old method of choosing colors while writing out a post here, vs the new color listbox. The color tags make everything look messy :(

evant
5 Aug 2009, 5:40 PM
Fixed in SVN, thanks.