Apr 04, 2012, 5:26 AM
TextField text select on focus Issue in Firefox
Here is the code block on which I am facing issue on text select in textfield,
var agetext = new Ext.form.TextField({
width: 80,
minLength: 1,
allowBlank: false,
selectOnFocus:true,
validator: function (v) {
return validateAgeOrDOB(v, true);
},
listeners: {
change: function () {
UpdateValues(this.getEl().id, this.getRawValue());
this.container.addClass('x-grid3-dirty-cell');
},
render: function(cmp)
{
cmp.getEl().on('click',function(){
this.dom.focus();
});
}
},
applyTo: 'ctl_' + i + '_' + j
});
fieldsToValidate += ',' + agetext.getEl().id;
On removing selectOnFocus:true from above code,text in textfield not gets selected and on adding this selectOnFocus, cursor not showing in textfield.
Last edited by rishu; Apr 04, 2012 at 5:30 AM.