emc*_*ken 9 html safari angularjs cordova ionic
我正在使用Ionic框架构建iOS应用程序.当我使用select-elements时,在iOS-native菜单中选择项目时,我没有得到标签为"Done"的标题.但是,当我在iOS/Safari中使用该应用程序时,它会显示出来.附加截图和代码.任何输入/解决方案都将非常感激.
截图:
标记
<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)
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)