You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text field in the search block should be required so that empty or placeholder results are not submitted.
This is also a long-standing issue in core. (34886) that I hope could accompany this fix.
cc @gibrown To reproduce
Steps to reproduce the behavior:
Create a post or page
add a search block
publish the post or page
visit the post or page
Expected behavior
an error message or notice stating that I'm submitting an empty form and a search term is required.
Additional context
Comprehensive testing has been done by Pacello Group and made some recommendations; my understanding that adding the 'required' attribute to the input element alone is a great start to this.
I've tested in firefox 66 on ubuntu; IE 11 and windows 10; and chrome and win 10 that by only adding the required attribute to the input element, visual messages for the user are displayed when the user submits a search that has a no value or a placeholder value.
(filed as a CPL employee).
The text was updated successfully, but these errors were encountered:
Describe the bug
The text field in the search block should be required so that empty or placeholder results are not submitted.
This is also a long-standing issue in core. (34886) that I hope could accompany this fix.
cc @gibrown
To reproduce
Steps to reproduce the behavior:
Expected behavior
an error message or notice stating that I'm submitting an empty form and a search term is required.
Additional context
Comprehensive testing has been done by Pacello Group and made some recommendations; my understanding that adding the 'required' attribute to the input element alone is a great start to this.
I've tested in firefox 66 on ubuntu; IE 11 and windows 10; and chrome and win 10 that by only adding the required attribute to the input element, visual messages for the user are displayed when the user submits a search that has a no value or a placeholder value.
(filed as a CPL employee).
The text was updated successfully, but these errors were encountered: