Project demonstrates behavior differences between select2 version 3.5.3 and version 4.0.x.
- test_353.html using version 3.5.3
- test.html using version 4.0.12
Version 3.5.3 works correctly.
Bugs occur only in case select is multiple and using option groups (optgroup)
- selected options are still visible in autocomplete
- Steps to reproduce:
- type Alaska
- press enter to select Alaska
- type Alaska again - expected: option is not visible, actual: option is still visible
- removing selected option opens autocomplete
- Steps to reproduce:
- type Alaska
- press enter to select Alaska
- click to 'x' to remove Alaska - expected: option is removed, actual: option is removed and autocomplete is shown
- mouse click and keyboard enter behave differently
- Steps to reproduce:
- type Alaska
- press enter to select Alaska
- type Alaska again (due to bug#1 this option is still available)
- press enter (nothing happens)
- type Alaska again (due to bug#1 this option is still available)
- click mouse to select Alaska - expected: should't be available, actual: removes option from selected options