cordova keyboard showing in every form page automa

2019-06-20 06:27发布

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.

2条回答
2楼-- · 2019-06-20 07:08

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

查看更多
虎瘦雄心在
3楼-- · 2019-06-20 07:14

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

查看更多
登录 后发表回答