cordova keyboard showing in every form page automa

2019-06-20 06:36发布

问题:

Am trying build a App using ionic frame work with angularJS which has lot of forms. when ever i open form page keyboard opens automatically. am using ionic keyboard. I have used

<preference name="KeyboardDisplayRequiresUserAction" value="true" />

but no use.

please help me to stop keyboard opening automatically.

回答1:

I solved the same issue by adding the below attribute to the button or element that opens the form.

data-tap-disabled="true"

eg:

<div data-tap-disabled="true" ng-click="openForm()"> Click here to open form </div>

More documentation can be found on the below link

Link Here



回答2:

This happened to me when the click event was handled after the page trasitioned. See the GitHub issue I opened: https://github.com/driftyco/ionic/issues/3649