-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Null tag added to list (race condition) #520
Comments
The flicker happens because the controller needs to strip the value each time you type a character and check to see if it matches items already in the list to prevent it from adding duplicates of existing select options. The delay is a necessary evil because of we need to not interfere with The null object is a pretty small issue, which can be fixed by type checking inside of the |
I'm seeing this as well, though it's not a race condition in this case. Pressing the down arrow (to open the dropdown), then pressing the up arrow (to deselect anything), then pressing enter causes a null element to be added. The null element does not appear in the list, so it probably shouldn't be able to be selected. Furthermore, this null element does not seem to be removable, instead throwing this:
Similar behavior occurs in object-based tagging. Plunker demo |
I am having the same problem. |
I didn't look closely at this the first time I commented on it. It's a valid bug. It's related to the internal |
Closing as this looks like it has since been fixed. Feel free to open a new issue if it is still a problem in the latest release. |
Hi guys,
I'm happy that tagging is being added to ui-select, however, it's still pretty rough around the edges. 0.9.5 fixed a lot of the things that made it unusable (couldn't select first thing, other breaking stuff), but I've encountered another smaller issue with 0.9.5.
http://plnkr.co/edit/Yx4I7EEM7jn7XVdKqsbL?p=preview

Click inside the input area, and then type a comma and then hit enter very quickly (it doesn't occur when you press comma and then spacebar, for some reason). A null item will be added to the array of items, which is annoying since it causes many errors in the console, and cannot be removed by clicking the 'x' or using the delete button.
Also, why does the dropdown flicker when tagging is enabled? It's kinda annoying, and it'd be nice if that could be fixed.
I appreciate the work done here guys!
The text was updated successfully, but these errors were encountered: