-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Place file input inside ion-content won't allow user to select file on Mobile Safari #1237
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
I tested the codepen example on iOS6 iPad, iOS7.0 iPad, and iOS7.1 iPhone5 and they all worked. |
It worked on iOS 7.0 Simulator for me. But failed on iOS 6.1 iPhone 5, iOS 6.1 Simulator (both iPhone and iPad). |
Are you including any other libraries, or using the codepen example directly which uses an iframe? I also tested with iOS 6.1 iPhone 4 simulator, and 6.1 iPhone 5 simulator and it worked every time. One note though is that the |
The codepen above does not use any library except |
I just modified the code pen to include 2 file inputs. One outside of ionic and one inside. The one outside is working fine. The one inside is not responding to click: http://codepen.io/anon/pen/EmaiB |
I'm facing the exact same issue. The file input is not working inside ion-content, but everything fine outside. Tested both on Android 4.4 and iOS 7.0.4. |
@adamdbradley Some additional information about the issue:
The first input above ion-view is working properly, but the second input inside ion-content is not working. Thanks! |
Ok, I finally see what the issue was, thanks for staying on it and providing some testing scenarios. It came down to the scroll's touchstart event having to not preventDefault for a file input, which is the same with range inputs. Thanks! |
@adamdbradley It works now. Thanks:) |
👍 Thanks @adamdbradley |
Great, thanks for helping debug! |
i have this problem also in ionic 1!!! please check if there was some regression? |
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. |
I put a simple

<input type="file">
insideion-view > ion-content
and user can't click on it to select file. Its screenshot:This is the codepen: http://codepen.io/anon/pen/EmaiB
The text was updated successfully, but these errors were encountered: