Can tab into disabled inputs
Categories
(Core :: Layout: Form Controls, defect)
Tracking
()
People
(Reporter: scottaohara, Assigned: emilio)
References
()
Details
(Keywords: testcase)
Attachments
(2 files)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:65.0) Gecko/20100101 Firefox/65.0
Steps to reproduce:
When using 65.0 (mac and PC) certain disabled form controls can unexpectedly receive keyboard focus.
- Go to: https://codepen.io/scottohara/pen/RvBEBO
- Focus the first text field and use the tab key to navigate the form controls
Actual results:
For inputs such as type=time or type=date, focus still enters the sub-fields of these inputs, even though the input element has the disabled attribute.
Expected results:
Focus should not have entered the disabled inputs and instead followed the focus order of:
- text field
- focus test 1 button
- focus test 2 button
- focus test 3 button
Updated•5 years ago
|
Assignee | ||
Comment 2•2 years ago
|
||
Number (bug 1368087) works now since that is just a text input, but date/datetime doesn't. I can take a look.
Assignee | ||
Comment 3•2 years ago
|
||
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 4•2 years ago
|
||
They're not focusable with mouse already.
Updated•2 years ago
|
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8f2ec80adf9a Disabled datetimebox inner elements shouldn't be tabbable. r=Gijs
Comment 8•2 years ago
|
||
bugherder |
Updated•2 years ago
|
Comment 9•2 years ago
|
||
Managed to reproduce the issue on an older version of Nightly (2019-02-13) using macOS 10.15.
Retested everything on the same platform using Firefox 102.0b3 and Nightly 103.0a1. The issue is not reproducing anymore.
Description
•