iOS InAppBrowser无法正确显示HTML选择 [英] iOS InAppBrowser not showing HTML select properly
问题描述
我正在使用Ionic 2构建应用程序.
I'm building an app using Ionic 2.
不确定这是否与Ionic 2或Cordova有关,但是也许您可以引导我朝正确的方向前进.
Not sure if this is related to Ionic 2 or Cordova, but maybe you can guide me in the right direction.
我正在使用InAppBrowser组件显示具有HTML选择组件的HTML页面,并且在iOS中显示选项时,未显示完成"按钮,因此无法进行选择.
I'm using an InAppBrowser component to show an HTML page which have an HTML select component, and when the options are shown in iOS the "done" button is not shown, so a selection can't be made.
这是在模拟器和真实设备中发生的.在android上工作正常.
This is happening in the emulator and in a real device. It works fine in android.
我附上一张图片以防万一,但是我也确实在其他网站上复制了它.
I'm attaching an image just in case, but I did reproduce this in other websites too.
推荐答案
document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {
window.cordova.plugins.Keyboard.hideKeyboardAccessoryBar(false);
};
这篇关于iOS InAppBrowser无法正确显示HTML选择的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!