I have a problem using Phonegap on iOS 11 on an iPad. If a select is clicked, it displays the options in a pop-up. After selecting one, the pop-up briefly disappears, the option in the select changes, then the pop-up re-appears. The following message is in the Xcode console:
[Warning] Application tried to represent an active popover presentation: <UIPopoverPresentationController: 0x100c3e450>
Edit: after the pop-up re-appears, nothing happens when you click it.
How can I get the select to not re-display the pop-up after selecting an option?
This is using the latest Phonegap 7.0.1.
It's just a normal html select:
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1, user-scalable=no" />
<meta http-equiv="Content-Security-Policy" content="default-src * 'unsafe-inline' 'unsafe-eval'">
<script type="text/javascript" src="cordova.js"></script>
</head>
<body>
<select>
<option value="1">Option 1</option>
<option value="2">Option 2</option>
<option value="3">Option 3</option>
</select>
</body>
</html>
You can download a sample project here:
https://github.com/tomkincaid/selecttest
I am running this by directly opening platforms/ios/SelectTest.xcodeproj in Xcode.
Edit: with two selects, the behavior is even stranger.
<select id="select1">
<option value="1">One</option>
<option value="2">Two</option>
<option value="3">Three</option>
</select>
<select id="select2">
<option value="4">Four</option>
<option value="5">Five</option>
<option value="6">Six</option>
</select>
Click on select1, it brings up the popup with select1 option.
Select an option, popup briefly disappears then reappears.
Click body to make pop up disappear.
Click select2. The select1 popup appears.
Click body to make pop up disappear. Popup briefly disappears, then reappears empty.
Click body to make pop up disappear.
Click select2 again. Now it displays the correct popup.