-
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
When tap on ionicPopup, would bring up iOS keyboard if there is input behind the popup #1536
Comments
Hey @yxztj, I'm having trouble reproducing this. Can you offer any more info about your specifc iOS version and steps to reproduce? |
Say you have html 5 input type="number". If the ionicPopup button for the popup is physically located over the actual input box on the screen, the touch event for the button seems to get passed down to the input field underneath. It is very specific to only the area of the button that is over the input field. This only happens on iOS (tested on 6 and 7), but does not happen on web or Android (4.3 was tested). |
Hi @perrygovier Thanks for the reply. I'm testing on iOS 7.0.4, iPhone 5 Please let me know if you need additional information. |
Ah, ok it doesn't happen on iOS 7.1. We'll take a look. Thanks for the additional info. |
I am seeing this on the simulator for iOS 7.1. I've updated my example for issue #1549. If you run on the iPhone 4" iOS 7.1 simulator, use the second menu option "Reset Local Data" to bring up the ionic popup. I changed the background of the input field to gray in order to help see it in relation to the popup. The custom files can be downloaded at: https://www.dropbox.com/s/k7s3l3mnhmcyx9b/sidemenu_withPopup.zip |
I was not sure which ionic version my demo was using (probably 6, but unsure), so I pulled and build from master (00c80e8) and retested. It still occurs on 7.1 at master. |
I experience the same problem, also on iOS 7.1.1 with beta 6. |
Note this does not occur in ios8 or the safari packaged with yosemite |
This occurs on Android 4.4. The pop-up Yes/No button was located over an HTML5 date input which always gets triggered when tapping the pop-up button. |
I don't believe this fix will work when the input is in a modal and the popup is right over the open modal, since the backdrop doesn't affect it. At least it didn't work for me. |
This is still happening in ios 8 |
I fixed this in a somewhat hackish way since the event passed into onTap is completely ignorant of propagation. I haven't looked into why because i needed a solution quickly.
The e.*() calls are unnecessary because they don't actually work. If they did work, that would be all you need to stop the event bubbling up to the input. The 500ms timeout allows the event to absorb itself (without bubbling up to the input) before closing the popup. Yes, there is a slight delay to closing the popup, but this is 500% better UX than what currently happens:
|
I think @adamdbradley fixed this in 20d567f . |
Yes this should be fixed from 20d567f Please reopen if you are still experiencing this within the nightly builds. |
I am getting this issue in iPhone6 , 9.1 version, iphone 6s , 10.1.1 |
@adamdbradley I can confirm that this is still an issue. I'm seeing this on iOS 10.3, iPhone 7 plus, and Ionic 1.3.0. In my case, it's a a date input behind the popup and it's triggered if it happens to behind the button that's tapped on the popup. |
This is not fixed. iPhone 6 My problem is when I use ion-select and I tap OK button if I have an input/textarea/ another type of input underneath is automatically focused and open the keyboard. |
I can still face same issue Please provide me the solid resolution. |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Tested on iOS7 Safari
http://codepen.io/anon/pen/fLiou
Expected behavior: Tap on ionicPopup wouldn't affect anything else on the page.
Actual behavior: Tap on ionicPopup would bring up keyboard if there is an input field behind the popup. The input looks like being focused, but there is no cursor in it. Can't input anything unless tap the input again.
The text was updated successfully, but these errors were encountered: