I didn't look at your last test case.
Anyway, in my opinion, css classes should be defined at "design time" and not at runtime. I think this is good practice.
How?
In most modern browsers, opening a local file using a link (href) is not possible for security reasons. This limitation is due to security policy.
Hello,
Can you test this approach for now?
MainForm.Script ->
Ext.define(null, {
override: 'Ext.form.Label',
afterRender: function () {
this.callParent(arguments);
if (Ext.isEmpty(this.forId)) {
this.getEl().dom.removeAttribute('for');
}
}
});