grav-plugin-form
grav-plugin-form copied to clipboard
validate.message should not be used a title attribute
templates/forms/default/field.html.twig
{% if field.validate.message %}title="{{ field.validate.message|t|e }}"
But documentation states: This will enable you to write a custom message that users will see in the event that validation fails. Instead a title fields is always enabled, field content being valid or not.
What we would expect is that validate.message
parameters affects a setCustomValidity()
behavior.
https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/HTML5/Constraint_validation#Constraint_API's_element.setCustomValidity()
I guess that line should be removed then.