PDA

View Full Version : possible bug on blur event for field



hvgotcodes
13 Nov 2007, 10:41 AM
onBlur : function(){
this.beforeBlur();
if(!Ext.isOpera && this.focusClass){ // don't touch in Opera
this.el.removeClass(this.focusClass);
}
this.hasFocus = false;

// shouldn't the third condition be == and not !=?
if(this.validationEvent !== false && this.validateOnBlur && this.validationEvent != "blur"){
this.validate();
}


see the comment above the conditional block around validate...