Opened 6 years ago
Closed 7 weeks ago
#47105 closed defect (bug) (wontfix)
Not focusing on input control when validate that input control
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Taxonomy | Keywords: | input-validation |
Focuses: | ui, accessibility, administration | Cc: |
Description
This issue is generated in form validation (category,tag,taxonomy,etc...) in input controls.
When anyone submits or save categories without a fill input box then showing red box validation but currently, it's not focusing validate a field (input field).
Expected:
When anyone submits or save category without fill input box then autofocus on validating input field that showing to the user to enter some value in the input box.
Please follow this GIF steps:
Attachments (2)
Change History (10)
#1
@
6 years ago
- Component changed from General to Taxonomy
- Focuses ui accessibility administration added
This ticket was mentioned in Slack in #accessibility by afercia. View the logs.
6 years ago
This ticket was mentioned in Slack in #accessibility by joedolson. View the logs.
2 months ago
This ticket was mentioned in Slack in #accessibility by joedolson. View the logs.
7 weeks ago
#8
@
7 weeks ago
- Milestone Future Release deleted
- Resolution set to wontfix
- Status changed from new to closed
I don't think this is all that clear cut. Moving focus can be disruptive, and if there are multiple errors, might give a person the impression that there is only that one.
Right now, if these forms are submitted without a title, there will be an error shown visibly and announced via wp.a11y.speak()
. If this was changed to have a focus move, we'd have to eliminate the spoken message and add an aria-describedby
with the field error message.
In my opinion, these are just two different and reasonable ways of accomplishing this goal. Moving focus may be slightly quicker for some users, but it could also be confusing for some users. Overall, it's probably a rare scenario, since the required field here is fairly obvious.
I'm going to close this as wontfix. If at some future point we resolve #47505, and determine that our global method for validation will be to focus the first error field, then this will still need to be done, but it would be done as part of a larger project.
I have fixed this focusing issue.