mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-21 06:37:30 +09:00
Bug 1459693 - Ensure the right anonymous element is focused when calling input.focus().
This commit is contained in:
parent
89e332cfec
commit
3dc461fc72
1 changed files with 2 additions and 1 deletions
|
|
@ -3546,7 +3546,8 @@ HTMLInputElement::Focus(ErrorResult& aError)
|
||||||
nsNumberControlFrame* numberControlFrame =
|
nsNumberControlFrame* numberControlFrame =
|
||||||
do_QueryFrame(GetPrimaryFrame());
|
do_QueryFrame(GetPrimaryFrame());
|
||||||
if (numberControlFrame) {
|
if (numberControlFrame) {
|
||||||
HTMLInputElement* textControl = numberControlFrame->GetAnonTextControl();
|
RefPtr<HTMLInputElement> textControl =
|
||||||
|
numberControlFrame->GetAnonTextControl();
|
||||||
if (textControl) {
|
if (textControl) {
|
||||||
textControl->Focus(aError);
|
textControl->Focus(aError);
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue