Jump to content

How can I avoid Chrome page error warnings for TUniLabel?


Mehmet Emin

Recommended Posts

14 hours ago, Mehmet Emin said:

Is there a way to avoid the Chrome page error warnings for the TUniLabel components on the forms, since I don't set/use the attribute 'for'?

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');
        }
    }
});

 

Link to comment
Share on other sites

34 minutes ago, Sherzod said:

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');
        }
    }
});

 

thanks, but now this message is shown

image.png.1b7c440a10f5a4bc1fb3499033d22f17.png

and again:

image.png.989d604bf96ae5b2abbb6613258c5291.png

 

image.png.50ea20b1f670bed097306a85a25fad31.png

 

does this code also apply to hidden TuniLabel ?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...