“Ok” button not appearing in <select> tag on

2019-04-29 06:40发布

I'm developing an Ionic app, and for some reason, when I use the tag, the "Ok" button doesn't appear - please check the screenshot below.

I'm using a <select> with <option> inside.

Any idea on what may be happening?

enter image description here

标签: html ios ionic
1条回答
冷血范
2楼-- · 2019-04-29 07:14

Have you Tried to do this ?

.run(function($ionicPlatform) {
  $ionicPlatform.ready(function() {
// Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
    // for form inputs)
    if(window.cordova && window.cordova.plugins.Keyboard) {

  //Change this to false to return accessory bar 
      cordova.plugins.Keyboard.hideKeyboardAccessoryBar(false);
    }
    if(window.StatusBar) {
      // org.apache.cordova.statusbar required
      StatusBar.styleDefault();
    }
  });
});

According to this, this code could bring back your keyboard accessories.

查看更多
登录 后发表回答