-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Conversation
@komakino can you give more info on what your meant with these 2 other tasks that you had on the PR:
|
On the plunker you submitted, there is a visual bug where elements are highlighted when they should not be. Do the following:
|
@PowerKiKi yes, this first commit was basically just the rebase of the code at the other PR. I see several some bug that I'll start fixing with next commits. |
@PowerKiKi I just push new commit that solves this problem (plunker updated) |
That was fast, thanks ! looking forward to seeing this merged :-) |
This is huge, thanks a lot for your hard work! |
I just pushed a tricky commit to be able to have the elements of the model (array), bind only to single property instead of whole object like #107. To make it clearer, plunker demo is showing different examples now. |
Merge please! |
Plunker for Bootstrap theme |
Hello all. |
just-boris, ngTagsInput is great, but it only shows options once you start typing. However, it doesn't allow the user to click into the field and immediately see a drop-down of choices, like we'd get with this enhancement, so I believe it's still necessary. Once this is merged, how is one expected to configure the component to get multiple selection? Is there an example? |
@just-boris keep in mind that even the native I just did a quick check to ngTagsInput and I see some differences, for example:
@brafkind you only need to add <ui-select multiple ng-model="multipleDemo.selectedPeopleSimple">
<ui-select-match placeholder="Select person...">{{$item.name}} <{{$item.email}}></ui-select-match>
<ui-select-choices repeat="person.email as person in people | propsFilter: {name: $select.search, age: $select.search}">
<div ng-bind-html="person.name | highlight: $select.search"></div>
<small>
email: {{person.email}}
age: <span ng-bind-html="''+person.age | highlight: $select.search"></span>
</small>
</ui-select-choices>
</ui-select> |
result; | ||
if ($select.multiple){ | ||
var resultMultiple = []; | ||
for (var j = inputValue.length - 1; j >= 0; j--) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
input value comes from user, we should check that it is array before use it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@just-boris solved on this commit 22f67aa
@dimirc you reasons seem convincing. |
Thank you! It's a very important feature.
|
Could you please point me at the place in the code where the refresh function in the multi ui-select removes items in the selected list? |
@keepitsimple What you mean that you want to select several addresses? The same address many times? Can you give a better example of the use case were this could be optional? |
d3d0950
to
b7c568a
Compare
If anyone wants to help, writing test for this PR will help a lot |
|
||
ctrl.selected = item; | ||
if(ctrl.multiple){ | ||
if(!_itemInSelected(item)){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't be necessary since we are already filtering selected
… list anymore and using single property binding
@keepitsimple I just pushed a commit that should correct the problem you had |
…e compatible with v1.3.0-beta+)
WIP:
Based on work done at #78 by @komakino. I manually rebased and did some minor changes.
TODO:
Demo plunker (I'll be updating it with each new commit)