grav-plugin-form icon indicating copy to clipboard operation
grav-plugin-form copied to clipboard

validate.message should not be used a title attribute

Open drzraf opened this issue 5 years ago • 1 comments

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()

drzraf avatar Nov 16 '18 15:11 drzraf

I guess that line should be removed then.

NicoHood avatar Jan 09 '21 17:01 NicoHood