Bug 264152 - Auto Focus not working in iOS devices using ng-otp-input library but it is working in non-iOS devices.
Summary: Auto Focus not working in iOS devices using ng-otp-input library but it is wo...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: Safari 16
Hardware: iPhone / iPad All
: P1 Critical
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-11-03 05:53 PDT by Ruchita Bhangre
Modified: 2023-11-10 04:54 PST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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>