Multiple Select on Safari - iPhone iOS 7
It appears the multiple select element is broken for the iPhone on iOS 7 in Safari and Chrome. (http://jsfiddle.net/ryborg/UjJ87/)
When the user expands the option list and clicks the Done cta to collapse the option list, the browser does some weird stuff.
- If no option is selected, it selects the first option in the list.
- If one option is selected, it deselects that option.
- If multiple options are selected, it deselects the last option to be tapped.
- If an option previously selected is deselected, it reselects the option.
Looking at the iPhone console from Safari 6 on my Mac shows that a change event fires for the select element when the option list is opened and again when it is closed. The desktop browsers are only firing change events when the options are (de)selected.
This is not happening on iPhone 3GS running iOS 6 nor on iPad 2 or iPad Mini running iOS 7.
Can anyone else reproduce this issue? Any suggestions on how to solve it?
iPhone 5, iOS 7.0.3