-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
bug: Clicking popup can click txtarea behind it if busy #2249
Comments
A workaround that seems to work is to wrap the promise handler in $timeout(..., 0). |
Hey @JonathanAquino, a recent fix may have also fixed this, can you confirm it's still present. If so, could you provide a working codepen or JS Fiddle example for us to reference? |
Here is a codepen: http://codepen.io/anon/pen/kLnzC . You can repro the problem by trying the codepen on an iPhone. Note that the keyboard appears when you click OK. |
Just tried this with beta 14, seems to no longer be an issue. |
Type: bug
Platform: ios 7 webview
In #2204 adamdbradley fixed a bug in which if you click an $ionicActionSheet, it clicks any textarea behind where you clicked. It was supposed to fix the same thing for $ionicPopup - however, if the $ionicPopup promise handler makes the system busy for a few milliseconds (such as when calling Angular's $http service), the problem happens again. In the sample code that follows, I simulate "making the system busy" by doing a tight loop for 90 ms.
To repro:
// Expected: The keyboard does not appear.
// Actual: The keyboard appears, and the textarea does not have focus.
Interestingly, the issue does not happen with $ionicActionSheet - just with $ionicPopup.
The same code for $ionicActionSheet, for which the problem does NOT happen:
The text was updated successfully, but these errors were encountered: