Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

BUG - No done button for select tag in IOS

I'm using the latest ionic and have a simple select tag.

<select class="assertive bold" ng-change="changeQuantity({cartItem: part})" ng-model="part.quantity" ng-options="n for n in [] | range:1:101"></select>

When I run the code with ionic emulate ios

Why is there no done button for the select? Shouldn't that be default? How do I fix this to display a done button?

like image 345
thank_you Avatar asked Aug 05 '15 18:08

thank_you


Video Answer


1 Answers

Although this is a late answer, I'm sure more people will end up here while searching for a solution to this issue.

By default in your app.js in .run() the hideKeyboardAccessoryBar is set to true, so just find

if (window.cordova && window.cordova.plugins.Keyboard) {
  window.cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
}

and change it to

if (window.cordova && window.cordova.plugins.Keyboard) {
  window.cordova.plugins.Keyboard.hideKeyboardAccessoryBar(false);
}
like image 171
johangu Avatar answered Sep 22 '22 09:09

johangu