Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML dropdown appears empty in Android lollipop

In phonegap application the html select option(dropdown) value is blank. That is shown white screen options instead of dropdown values but when click the option able to get the value from that.

This issue occur in only Android Lollipop devices( tested in nexus 4 and nexus 7 devices) other devices display correctly.

HTML code is:

<select id="selectlanguage" onchange="selectLangauge();">
    <option value="english">English</option>
    <option value="hindi">Hindi</option>
</select>

enter image description here

like image 541
Aravin Avatar asked Sep 03 '26 12:09

Aravin


1 Answers

This is a known problem with Android WebView on Lollipop.

https://code.google.com/p/android/issues/detail?id=80909

One way to work around this is by generating a DIV that displays the list, essentially replacing the OPTIONs.

like image 187
Thomas Avatar answered Sep 06 '26 03:09

Thomas



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!