-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
A UI bug on iOS devices: iOS native window is shown after focusing on a multiple choices select element #6321
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hey! any luck on this one? |
@kevin-brown or @jayaddison, please, take a look at this. |
Unfortunately this one is going to be hard to debug and correct since I don't have ready access to iOS devices anymore and this doesn't appear in my emulator. |
@vitalii-work is the relevent select control loading data from AJAX, or are the options baked-in to the webpage content? |
Self-quoting:
I can answer that myself, because the question is about the The answer is: it's not AJAX, but it's also not pure HTML. From 'most static' to 'most dynamic', the options we generally have are:
In this case the geoselection options are configured from a static set of states in this file: https://github.com/select2/select2/blob/595494a72fee67b0a61c64701cbb72e3121f97b9/docs/themes/site/templates/partials/js/source-states.html.twig Why is all that relevant? When does that time-of-calculation occur? Perhaps it is during the parsing of the raw HTML itself? (that would, in some ways, be quite fast and efficient - preparing as much of the UI/dialogs as possible based on known-static data) What are you saying??? Edit: remove accidental line-number from source file reference. |
(I could be mistaken about much of the above; it's best-guess based on some mental models I have about how iOS might work, and why that dialog might appear in a dialog that is displaying the given web content) |
It might be possible to confirm/reject the theory that this occurs when |
Steps to reproduce:
Open the following page from an iPhone:
https://select2.org/appearance#labels
Focus on the multiple select element field.
You'll see that the 2nd iOS native window saying "No Options" is temporarily shown (just for a second):
RPReplay_Final1719132459.MOV
I've tested on 2 iPhone devices with different iOS versions. The bug persists.
The text was updated successfully, but these errors were encountered: