Skip to content
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

Text input in modal requires double tap to get soft keyboard on Android 4 #1133

Closed
robdmoore opened this issue Apr 15, 2014 · 7 comments
Closed
Assignees
Milestone

Comments

@robdmoore
Copy link

Hi,

If I put a form on a modal using nightly then on Android 4 when tapping one of the inputs it doesn't pull up the soft keyboard (there is a cursor in there though so the focus clearly happens) until a second tap.

Once the soft keyboard is up if you tap to another field then it's still OK.

I've replicated the problem here: http://plnkr.co/edit/cNJD8B0e2V6Ta4zHYLyH?p=preview

Thanks

@adamdbradley
Copy link
Contributor

Duplicate of #1134

@adamdbradley
Copy link
Contributor

I just pushed a large tap refactor to solve many of these issues:
https://github.com/driftyco/ionic/blob/master/test/unit/angular/service/tap.unit.js#L4

Would you be able to test the nightly build (1712 or later) and let us know if it solved this issue?
http://code.ionicframework.com/#nightly

Thanks

Related: #862 #740 #726 #691 #689 #365 #26 #1134 #1120 #1105 #1078 #772 #745

@robdmoore
Copy link
Author

This seems to be fixed - thanks :)

Not sure if it's just me or not, but it looks like desktop Chrome doesn't allow you to open up select inputs? When I click it after upgrading it opens and then closes against straight away unless I hold down my click and drag my mouse over an option.

@adamdbradley
Copy link
Contributor

@robdmoore Is this with emulating touch screen? Do you have a label around the select element? This is what I've been using to test: https://github.com/driftyco/ionic/blob/master/test/html/tapInputs.html#L132

@robdmoore
Copy link
Author

Nah - it was on a non touch device with normal mouse.

My html was:

            <ion-item class="item-input item-select">
                <div class="input-label">Language</div>
                <select ng-model="selectedLanguage.language" ng-options="c for c in languageNames"></select>
            </ion-item>

If I change that ion-item to a label with a class of item as well as the other two then it works if I click the label, but I still see the same behaviour when I click on the select element itself.

@ParitoshVaidya
Copy link

Getting same issue on Moto e (1st Gen.) Android 4.4 Ionic v 1.3.16 Will let you know about other devices.

@ggeorg
Copy link

ggeorg commented Jun 10, 2016

this seems to work for me:

                <!-- iOS Cordova prefers <span> instead of: <label class="item item-input"> -->
                <span class="item item-input">
                    <input data-ng-model="newEvent.name" type="text" placeholder="Event Name"
                        required="true" autofocus="autofocus" autocomplete="off"
                        autocorrect="off" autocapitalize="off" spellcheck="false"></input>
                </span>

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants