Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

fix(uiSelectMultiple): ensure first item can selected #1713

Closed

Conversation

user378230
Copy link
Contributor

@user378230 user378230 commented Jul 9, 2016

Issue caused when using simple string item source and tagging label
set to false, causing confusion in selection code between a new tag
and an existing item.

This refactors the selection logic to simplify the code paths and
hopefully make it less prone to errors.

Possible fix for #1214

Issue caused when using simple string item source and tagging label
set to false, causing confusion in selection code between a new tag
and an existing item.

This refactors the selection logic to simplify the code paths and
hopefully make it less prone to errors.
$select.clear = function($event) {
$select.selected = undefined;
$event.stopPropagation();
$timeout(function() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you save this $timeout to a variable so that onDestroy it can be cancelled?

@aaronroberson
Copy link
Contributor

This is much more inline with the direction that the project needs to go!

@user378230
Copy link
Contributor Author

Parking this for the time being as I was planning on redoing the tagging stuff a bit more sanely.

@user378230 user378230 closed this Aug 15, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants