Bug 264152

Summary: Auto Focus not working in iOS devices using ng-otp-input library but it is working in non-iOS devices.
Product: WebKit Reporter: Ruchita Bhangre <ruchitabhangre24>
Component: FormsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Critical CC: akeerthi, cdumez, megan_gardner, webkit-bug-importer, wenson_hsieh
Priority: P1 Keywords: InRadar
Version: Safari 16   
Hardware: iPhone / iPad   
OS: All   

Description Ruchita Bhangre 2023-11-03 05:53:27 PDT
Auto focus not working in iOS devices. We are using ng-otp-input library version 1.9.3. The auto focus is working fine in android and desktop.
We are using ng-otp-input for OTP boxes where auto focus should be come in first box on page load.

Please help me to know it's the iOS versions not supports this functionality, or this is a bug in iOS.
Comment 1 Alexey Proskuryakov 2023-11-03 08:58:25 PDT
I think it's intentional behavior that webpages are not allowed to bring up the keyboard on their own. CC'ing experts to confirm.
Comment 2 Ruchita Bhangre 2023-11-04 16:03:27 PDT
Hi Alexey, 

Thanks for your response just want to know is the focus on first otp box issue is related to the webpage not allowed to bring up the keyboard on thier own???
Comment 3 Aditya Keerthi 2023-11-04 18:13:45 PDT
Yes, webpages cannot bring up the keyboard on their own, unless there is user interaction.
Comment 4 Radar WebKit Bug Importer 2023-11-10 04:54:13 PST
<rdar://problem/118230964>