Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cordova keyboard showing in every form page automatically

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.

like image 598
Arun Sameer Avatar asked Jan 17 '15 05:01

Arun Sameer


2 Answers

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

like image 133
practice2perfect Avatar answered Nov 16 '22 07:11

practice2perfect


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

like image 26
wdev Avatar answered Nov 16 '22 09:11

wdev