You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 2, 2019. It is now read-only.
When you have selected the first value in a tag choice dropdown, while the input box is empty and than use the up arrow and hit "enter" there will be a null value added to the array.
Full story: insert any letter: "k" than a dropdown with suggested tags will be represented. Now hit "backspace" and hit "the up-arrow-key" and hit "enter".
A null tag is added
Link to minimally-working plunker that reproduces the issue:
I fixed the bug simply by changing line 689 from select.js in the provided plunkr by changing: if ( ctrl.activeIndex === 0 ) {
to: if ( ctrl.activeIndex < 1 ) {
Bug description:
When you have selected the first value in a tag choice dropdown, while the input box is empty and than use the up arrow and hit "enter" there will be a null value added to the array.

Full story: insert any letter: "k" than a dropdown with suggested tags will be represented. Now hit "backspace" and hit "the up-arrow-key" and hit "enter".
A null tag is added
Link to minimally-working plunker that reproduces the issue:
The select/tagging demo from the wiki: http://plnkr.co/edit/v5S1ILJXamIBc83WIMMJ?p=preview
Version of Angular, UI-Select, and Bootstrap/Select2/Selectize CSS
Angular:
1.5
UI-Select:
1.9.5
The text was updated successfully, but these errors were encountered: