ionic - iPAD中的下拉列表闪烁 [英] ionic - Drop down list flickers in iPAD

查看:199
本文介绍了ionic - iPAD中的下拉列表闪烁的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Ionic应用程序中的下拉列表在iPAD中闪烁。

Dropdown list in my Ionic application flickers in iPAD.

[1。 On Dropdown Tap]

[1. On Dropdown Tap]

[2。如果点击外部下拉列表]

[2. If Tap on outside dropdown list]

[ 3。如果点击内部下拉列表]
将再次显示图像1。

[3. If Tap inside dropdown list] Once again the Image 1 will be shown.

它适用于iPhone 5s。但不是在iPAD中。

It worked fine with iPhone 5s. But not in iPAD.

任何解决方案或解决方法?

Any solution or workaround ?

编辑:

即使我改变了iPAD的方向,它也会显示之前列出的下拉内容。

Even if I change the orientation of iPAD, it shows the previously listed dropdown contents.

推荐答案

最近更新了iOS 11和Apple的UIWebView似乎是一个问题。它适用于Apple的WKWebView。

Seems to be an issue with recent update of iOS 11 and Apple's UIWebView. It works well with Apple's WKWebView.

通过安装cordova的WKWebView解决了这个问题。

Resolved the issue by installing cordova's WKWebView.

>> cordova plugin add cordova-plugin-wkwebview-engine --save

然后在config.xml中添加以下内容:

Then adding the following in config.xml:

<feature name="CDVWKWebViewEngine">
  <param name="ios-package" value="CDVWKWebViewEngine" />
</feature>

<preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine" />

参考链接:


  1. WKWebView Engine插件

  2. Apple的文档

  3. Cordova论坛

  4. 其他问题

  1. WKWebView Engine plugin
  2. Apple's Documentation
  3. Cordova forum
  4. Other SO question

这篇关于ionic - iPAD中的下拉列表闪烁的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆