aria-describedby conflict, value being overwritten
-
Hi,
I’m using the popular jquery validation script https://github.com/jquery-validation/jquery-validation
The script already adds the aria-describedby attribute, the latest version of cf7 is also adding this attribute but it’s overwriting the value, example:
aria-describedby="wpcf7-f9498-p9543-o1-ve-yourName yourName-error">
When I comment out the line in cf7 js script I get the desired value:
$( '.wpcf7-form-control', this ).attr('aria-describedby',n.error_id);
Result:
aria-describedby="yourName-error"
Is there a filter to disable cf7 form adding aria-describedby attribute? Or I can use a custom event on validation failed to prevent the attribute from being added..I may try that as well.
If any ideas let me know, thanks!
- The topic ‘aria-describedby conflict, value being overwritten’ is closed to new replies.