multiple select + tab to next field issue
Thanks for the great plugin and support! In Safari 6 (Mac), Firefox 31 (Mac+Win), Chrome 36 (Mac), I'm seeing the following issue with multiple selects:
- click the select, use Return key to select a value
- tab to next field
Last selected value in list reverts to its previous value (selected or deselected) after tabbing to next field instead of retaining the chosen state.
This occurs in the bootstrap-select demo as well as in my production setup.
This behaviour is due to the keydown function, which generates a click if the tab key is pressed while an option is focused. While correcting this bug is a backwards incompatible change, it is an accessibility issue, so I'll add it to 1.6.0.
This is still buggy in Chrome, FF and Safari on both Mac and Windows. Problems listed below, using the following procedure for testing:
- Tab to select
- Cursor or type-ahead to the desired option
- Hit Enter or Return to select option
- Repeat steps 2 & 3 as needed
- Hit Tab to go to the next field
Mac Chrome 39.0.2171.71 (64-bit):
- Tabs to first field in the form instead of next field.
- List stays open when tabbing to the next field. Must hit Esc to close the list.
- After hitting Enter/Return to select an option, cursor does not go to next or previous item, but scrolls the list instead. I couldn't find any method of selecting multiples using the keyboard.
Mac FF 33.1.1:
- List stays open when tabbing to the next field. Must hit Esc to close the list.
- After hitting Enter/Return to select an option, cursor does not go to next or previous item, but scrolls the list instead. I couldn't find any method of selecting multiples using the keyboard.
Mac Safari 6.2 (8537.85.10.17.1):
- Tabs to second field in the form instead of next field.
- List stays open when tabbing to the next field. Cannot close list with Esc or any other key I tried.
- After hitting Enter/Return to select an option, cursor does not go to next or previous item, but scrolls the list instead. I couldn't find any method of selecting multiples using the keyboard.
Win Chrome 39.0.2171.71 m:
- Tabs to first field in the form instead of next field.
- List stays open when tabbing to the next field. Must hit Esc to close the list.
- After hitting Enter/Return to select an option, cursor does not go to next or previous item, but scrolls the list instead. I couldn't find any method of selecting multiples using the keyboard.
Win FF 33.1.1:
- After hitting Enter/Return to select an option, cursor does not go to next or previous item, but scrolls the list instead. I couldn't find any method of selecting multiples using the keyboard.
- Two Tab keystrokes are required to tab to the next field. Seems like only one should be required.