html - Mobile Safari multi select bug -


if found annoying bug on current (ios 9.2) mobile safari (first appearing since ios 7!)

if using multi select fields on mobile safari - this:

<select multiple>     <option value="test1">test 1</option>     <option value="test2">test 2</option>     <option value="test3">test 3</option> </select> 

you have problems automatically selection!

ios automatically selecting first option after opened select (without user interaction) - not show blue select "check".

so if select second option, select tell 2 options selected (but highlighting 1 selected)...

if close , open select again, ios automatically deselect first value - if repeat, selected again without user interaction.

thats annoying system bug, breaking user experience!

solution safari multi select bug , empty , disabled option tick related issue:

<select multiple>  <optgroup disabled hidden></optgroup>  <option value="0">all</option>  <option value="1">test 1</option>  <option value="2">test 2</option>  <option value="3">test 3</option>  <option value="4">test 4</option>  </select>

add disabled , hidden optgroup before real options.


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -