Retain focus on elements if they gain disabled=
Categories
(Core :: DOM: Core & HTML, enhancement)
Tracking
()
People
(Reporter: keithamus, Assigned: keithamus)
References
()
Details
(Keywords: leave-open)
Attachments
(13 external files)
| Assignee | ||
Comment 1•18 days ago
|
||
This prototypes a solution for https://github.com/whatwg/html/issues/13159
Updated•16 days ago
|
| Assignee | ||
Comment 2•16 days ago
|
||
A focused date or time input still loses focus when it becomes disabled. Focus
sits on an edit field inside the input's UA widget via -moz-user-focus: none.
| Assignee | ||
Comment 3•16 days ago
|
||
Controls that keeps focus after becoming disabled still handle key presses.
This change makes nsGenericHTMLElement::HandleKeyboardActivation and
HTMLInputElement::PostHandleEvent clear pending keyboard activation and skip
default key handling while the control is disabled.
| Assignee | ||
Comment 4•16 days ago
|
||
This change dismisses the running picker whenever an input becomes disabled,
including through a fieldset. HTMLInputElement::UpdateDisabledState dismisses
so its callbacks drop later results, and fires cancel, and closes popups.
| Assignee | ||
Comment 5•16 days ago
|
||
Disabling a select leaves its open dropdown running.
This change makes HTMLSelectElement::UpdateDisabledState queue
DismissPickerForDisabled when the select becomes disabled, which hides the
parent process dropdown or the picker popover. It also allows the select
to gain focus, even when disabled, to ensure focus lands somewhere
sensible after closing.
| Assignee | ||
Comment 6•16 days ago
|
||
This change makes nsFormFillController::ReadOnly treat disabled inputs and
textareas as read-only, so if they have focus they can't continue
participating in autocomplete.
Comment 8•13 days ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/e1b70f73fff4
https://hg.mozilla.org/mozilla-central/rev/f4492336a3dc
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/64734 for changes under testing/web-platform/tests
Upstream PR merged by moz-wptsync-bot
Updated•7 days ago
|
| Assignee | ||
Updated•7 days ago
|
| Assignee | ||
Comment 11•6 days ago
|
||
| Assignee | ||
Comment 12•6 days ago
|
||
| Assignee | ||
Comment 13•6 days ago
|
||
| Assignee | ||
Comment 14•6 days ago
|
||
| Assignee | ||
Comment 15•6 days ago
|
||
| Assignee | ||
Comment 16•6 days ago
|
||
| Assignee | ||
Comment 17•6 days ago
|
||
Updated•6 days ago
|
Updated•6 days ago
|
Updated•6 days ago
|
Comment 18•6 days ago
|
||
Comment 19•5 days ago
|
||
| bugherder | ||
| Assignee | ||
Updated•5 days ago
|
| Assignee | ||
Updated•5 days ago
|
Description
•