Ion-toggle directive state change opens keyboard on Android, how to prevent it?


I use v0.9.27 with ion-toggle directive:

<ion-toggle ng-model="someModel">

The problem:

When I change ion-toggle state (On/Off) Android shows keyboard (I use Nexus 4 so far).

Is there workaround?


I don’t see a bug report on anything like that. Can you please:

Put up a single page codepen sample and then open an issue?

I confirm I have the same issue with the example :

@ronyrun : I just realized the original was from more than a month ago. I just setup a local app to test on device. I don’t see the don’t see the problem on Beta 2 or Beta 3 with Android 4.2.2.

If you’re experiencing the problem, can you please tell us:

Android Version
Ionic Version
What does you <head> look like?

I got the same problem on wp8 with ionic 1.0.0-beta8. My looks like:

<link href="lib/ionic/css/ionic.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">

<!-- IF using Sass (run gulp sass first), then uncomment below and remove the CSS includes above
<link href="css/" rel="stylesheet">

<!-- ionic/angularjs js -->
<script src="lib/ionic/js/ionic.bundle.js"></script>

<!-- cordova script (this will be a 404 during development) -->
<script src="cordova.js"></script>

<!-- your app's js -->
<script src="js/app.js"></script>
<script src="js/controller.js"></script>
<script src="js/service.js"></script>

Still seems to be an issue. I use ion-toggle on a form with various input fields and once a text field has focus, with keyboard closed, the keyboard pops up when tapping on the toggle.

Android 5.1.1, Ionic 1.1.0.