[Webkit-unassigned] [Bug 218005] New: After iOS 14, Safari getElementById().focus() for text input via onclick stops working after first time in iFrame

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Oct 20 16:53:12 PDT 2020


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

            Bug ID: 218005
           Summary: After iOS 14, Safari getElementById().focus() for text
                    input via onclick stops working after first time in
                    iFrame
           Product: WebKit
           Version: Safari 14
          Hardware: All
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Forms
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: derrick.r.chao at gmail.com
                CC: cdumez at apple.com, wenson_hsieh at apple.com

I have an onclick event that triggers a function which then calls getElementById().focus() on a text input. On the first tap, it will work just fine. On subsequent taps, however, it no longer focuses on the text input and it requires the user to tap on the text input. This is for an embedded app in Shopify POS which opens in a Safari Webview and I have also reproduced the behavior in iOS Safari as well (which embeds in an iFrame).

I believe I have isolated the cause of this to updating to iOS 14 (I am testing this on a physical 6th gen iPad). I have verified that on a physical iPhone running iOS 13, xcode iPad emulator running iOS 13.4, and another physical iPad running iOS 12, the .focus() still works as intended.

Pre iOS 14: https://photos.app.goo.gl/hdpHDooFw6LPGdbQ7

After iOS 14 update: https://photos.app.goo.gl/BCbEyqchkFPnJNwM9

-- 
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/20201020/d0f5cb02/attachment.htm>


More information about the webkit-unassigned mailing list