HTML选择"完成"标签未在Ionic for iOS上显示

emc*_*ken 9 html safari angularjs cordova ionic

我正在使用Ionic框架构建iOS应用程序.当我使用select-elements时,在iOS-native菜单中选择项目时,我没有得到标签为"Done"的标题.但是,当我在iOS/Safari中使用该应用程序时,它会显示出来.附加截图和代码.任何输入/解决方案都将非常感激.

截图:

iOS Safari截图 iOS Safari截图

iOS Native/Ionic截图 iOS Native/Ionic截图

标记

<label class="item item-input item-select">
    <div class="input-label">
        Bostadstyp
    </div>
    <select ng-change="addParam('objectType', selectedHouseType)" ng-model="selectedHouseType" ng-options="houseType.id as houseType.label for houseType in houseTypes"></select>
</label>
Run Code Online (Sandbox Code Playgroud)

luc*_*nik 8

Ionic应用程序包含app.js中隐藏键盘附加栏的默认代码,您需要对以下行进行注释:cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);

得到这样的东西:

// 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);

}
Run Code Online (Sandbox Code Playgroud)

  • 根据我的经验,评论并没有削减它.我不得不将`true`改为`false`并以此方式运行.因此,只有在运行以下代码时,血腥问题才会消失; cordova.plugins.Keyboard.hideKeyboardAccessoryBar(假); (8认同)