-
Notifications
You must be signed in to change notification settings - Fork 1.8k
weird behavior in iOS Safari #603
Comments
You can see this behavior on the demo page, testing it with iPad mini iOs version 8.1.2 |
Same issue here on iPad mini 2 & iPhone 4/4S |
Is there a fix for this issue yet? i am also facing this issue. |
+1 |
2 similar comments
+1 |
+1 |
can confirm this too |
Have somebody found how to fix it? Any forked project / quickfix? |
+1 |
The reason of the bug is that iOS safari doesn't allow to set focus from functions which wasn't the result of user's interaction. Specifically the first function in call stack must be some sort of reaction on 'click', 'touchend',.. events. Some details here.
with
Timeout starts new function call stack, so iOs Safari doesn't allow that .focus().
Also I recommend to disable focusser activation on select close, to prevent iOS keyboard jumping. Here is the code of close function. My code is:
Conclusion |
+1 |
5 similar comments
+1 |
+1 |
+1 |
+1 |
+1 |
Hello,
ui-select works great on desktop, but in iOS Safare I have experienced weird behavior. When you clik on the control some ramdom item is selected, the keyboard is not shown. If then you select one item tapping on it, the keyboard is suddenly shown and the wrong item is selected. If instead of tapping on an item, you tap on the control again, the keyboard is shown, and all works as expected.
The text was updated successfully, but these errors were encountered: