SOLVED: Incorrect use of <label for=FORM_ELEMENT>

Browser: Chrome 114.0.5735.198
OS: macOS / Windows.
URL: Link to a page that illustrates this issue

Hello,

I get this error on all forms that have datepicker field in them, when inspecting in DevTools - "The label’s for attribute doesn’t match any element id. This might prevent the browser from correctly autofilling the form and accessibility tools from working correctly.

To fix this issue, make sure the label’s for attribute references the correct id of a form field."

1 Like

Hi Maxim,
Thanks so much for your report!

I see the problem and added it to the bug tracker.

Best regards,
timmse

1 Like

Hi Maxim,
We’ve fixed this bug in Bricks 1.8.2, now available as a one-click update in your WordPress Dashboard.

Please let us know if you are still experiencing issues.

Best regards,
timmse

1 Like

Thank you, timmse! All datepicker fields seem to have aria-label now.

I also faced same issue could you guide me please how can I fix it?

Hi Waleed,
Welcome to the forum!

The issue has been fixed in Bricks 1.8.2 (a long time ago) and no longer occurs in the current version. I think that your problem is a different one. Can you provide more information and a live link?

Incorrect use of
# Incorrect use of
could you lease fix this issue on my wordpress?

I’m sorry, but your website is not using Bricks at all :thinking: