Bug 2219332
| Summary: | Prevent accidentally submitting ticket from "user select" widget | ||
|---|---|---|---|
| Product: | [Community] Bugzilla | Reporter: | Vít Ondruch <vondruch> |
| Component: | User Interface | Assignee: | Jeff Fearn 🐞 <jfearn> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Jeff Fearn 🐞 <jfearn> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 5.0 | CC: | agk, jfearn |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | 5.0.4-rh92 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 2187633 | Environment: | |
| Last Closed: | 2023-09-11 00:05:04 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Vít Ondruch
2023-07-03 09:00:07 UTC
(In reply to Vít Ondruch from comment #0) > It looks like if you use that widget, anywhere, such as CC, and you hit > enter without selecting an entry in the drop down then it submits the form. > This is actually correct from accessibility standards perspective, but it > sucks. We would need to change how the text box works for this use case, but > do so in a way that doesn't break accessibility. Not sure if in the form has to be existing user but checking existence of valid user might be one precondition to consider what the Enter should do in that box. Also, I think it is kind of surprising that typing part of the user name does not preselect some of the listed users. > i.e. we will need to work out how to make it non-standard and communicate > that to browsers in accessibility mode, readers, etc. > > In the meantime if you decide you don't want to select a user, then use the > escape key to exit the widget. I don't think that my issue is with escaping the widget. But if I type "pval" looking for Pavel Valena, then some entry from the displayed list should be preselected and should handle the press of the Enter. But to have something selected, I would need to press an arrow first. FYI for future me, the widget the user select is based on [1, the overrides in RHBZ [2]. 1: https://api.jqueryui.com/autocomplete/ 2: https://pagure.io/Red-Hat-Bugzilla/rh-bugzilla/blob/master/f/extensions/BayotBase/web/js/bayot.util.js#_971 On QA server. 1. Open an existing bug 2. In the new comment box start typing a user match When the user match pops-up the first entry is selected. 3. Press enter User is added to comment and needinfo box. The form does not submit. 4. Remove the user data and start the user match again 5. When user match list pops up, press the up key and then the enter key The text you entered in to the text box is added to the comment. The form does not submit. 6. Remove the text and start the user match again 7. When user match list pops up, press the escape key. The user select closes, the comment box is not updated. The form does not submit. 8. Add a needinfo and submit the form. The user is needinfo'd This fix has been deployed to stage Bugzilla for a short public testing phase. https://bugzilla.stage.redhat.com This change is now live. If there are any issues, do not reopen this bug. Instead, you should create a new bug and reference this bug. |