Hi, the problem is here :
PHP Code:
Ext.define('Ext.theme.material.form.field.Text', {
override: 'Ext.form.field.Text',
labelSeparator: '',
listeners: {
change: function(field, value) {
if (field.el) {
field.el.toggleCls('not-empty', value || field.emptyText);
}
},
render: function(ths, width, height, eOpts) {
if ((ths.getValue() || ths.emptyText) && ths.el) {
ths.el.addCls('not-empty');
}
}
}
});
When you override the listeners config, change & render events are not fired, and the 'not-empty' cls is not added to field
Maybe something like :
PHP Code:
Ext.define('Ext.theme.material.form.field.Text', {
override : 'Ext.form.field.Text',
labelSeparator : '',
listeners:{},
initComponent : function () {
this.callParent();
this.on({
change : function (field, value) {
if (field.el) {
field.el.toggleCls('not-empty', value || field.emptyText);
}
},
render : function (ths, width, height, eOpts) {
if ((ths.getValue() || ths.emptyText) && ths.el) {
ths.el.addCls('not-empty');
}
},
scope : this
});
}
});
would work