HTML select “Done” label not showing on Ionic for iOS

后端 未结 3 1915
礼貌的吻别
礼貌的吻别 2021-01-05 00:18

I am building an iOS-app using the Ionic-framework. When I use select-elements, I do not get the header with the label \"Done\" when selecting items in the menu on iOS-nativ

3条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-05 00:37

    The Ionic app contains a default code in app.js who hide the keyboard acessory bar, you need to comment this following line: cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);

    Getting something like this:

    // 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) {
      //cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
      cordova.plugins.Keyboard.disableScroll(true);
    
    }
    

提交回复
热议问题