ionic - Drop down list flickers in iPAD

依然范特西╮ 提交于 2020-01-03 02:01:15

问题


Dropdown list in my Ionic application flickers in iPAD.

[1. On Dropdown Tap]

[2. If Tap on outside dropdown list]

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

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

Any solution or workaround ?

EDIT:

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


回答1:


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

Resolved the issue by installing cordova's WKWebView.

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

Then adding the following in config.xml:

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

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

Reference links:

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


来源:https://stackoverflow.com/questions/46365944/ionic-drop-down-list-flickers-in-ipad

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!