Focus issues when Clear button is enabled for <input type=search>
Categories
(Core :: DOM: Core & HTML, defect, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox140 | --- | fixed |
People
(Reporter: MatsPalmgren_bugz, Assigned: tgiles)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
I noticed some focus issues when implementing the Show Password button for <input type=password> in bug 502258. The same issue also occurs with the Clear button in <input type=search>.
When you click the button the <input> element loses focus (it's now on the button so you can't type text into the control).
I fixed it for the Show Password button like so:
https://phabricator.services.mozilla.com/D130407#inline-716301
| Assignee | ||
Comment 2•11 months ago
|
||
While it would be more beneficial if we didn't blur and focus the input
twice when clicking the clear search button, this is an improvement
over losing focus entirely.
I'm not entirely sure if the :focus / :focus-visible inconsistent
state issue is fixed by this change.
Depends on D243386
Updated•11 months ago
|
Updated•11 months ago
|
Comment 4•10 months ago
|
||
Backed out for causing mass failures
Backout link: https://hg-edge.mozilla.org/integration/autoland/rev/6b23657736ddb2d690612ab7801486006259c0eb
Push with failures: https://treeherder.mozilla.org/jobs?repo=autoland&resultStatus=testfailed%2Cbusted%2Cexception%2Cretry%2Cusercancel&revision=11f55b37b32bce47eb94e9e18a18ab51735332b1
Failure logs:
https://treeherder.mozilla.org/logviewer?job_id=505050094&repo=autoland&lineNumber=4274
https://treeherder.mozilla.org/logviewer?job_id=505050099&repo=autoland&lineNumber=2775
https://treeherder.mozilla.org/logviewer?job_id=505052681&repo=autoland&lineNumber=9008
https://treeherder.mozilla.org/logviewer?job_id=505050754&repo=autoland&lineNumber=1969
Comment 6•10 months ago
|
||
| bugherder | ||
Updated•9 months ago
|
Description
•