问题
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:
- WKWebView Engine plugin
- Apple's Documentation
- Cordova forum
- Other SO question
来源:https://stackoverflow.com/questions/46365944/ionic-drop-down-list-flickers-in-ipad