[Webkit-unassigned] [Bug 281525] New: [iOS] Unable to reliably change focus from select.onchange on iOS 17.6.1

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Oct 15 14:30:10 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=281525

            Bug ID: 281525
           Summary: [iOS] Unable to reliably change focus from
                    select.onchange on iOS 17.6.1
           Product: WebKit
           Version: Safari 17
          Hardware: iPhone / iPad
                OS: iOS 17
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: jimmy at codemagic.dk

Created attachment 472948

  --> https://bugs.webkit.org/attachment.cgi?id=472948&action=review

Video demonstrating that focus state cannot be controlled from select's onchange handler

Try https://jsfiddle.net/jcd3ehmo/ from an iPhone.

Tested on iOS 17.6.1 on iPhone SE 2020.

Notice how the input field is focused when the dropdown control's value is changed. However, on iPhone, the input lose focus shortly after receiving it.

Attached video demonstrates the problem - here is exactly what I did:

1) I clicked the input field to make Safari move focus to the result window of JSFiddle.
2) I clicked "Done" on the virtual keyboard to close it.
2) I clicked the select dropdown.
3) I selected "Option 2".
4) The onchange handler fired and moved focus to the input field.
5) The input field was focused and the virtual keyboard was shown.
5) Shortly hereafter, the input field lost its focus to BODY (bug).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20241015/60123889/attachment.htm>


More information about the webkit-unassigned mailing list