-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Chips have blank template when search text not found in items collection #3475
Comments
Properly set require-match=true in demos so that the value is correct in the components. Check for requiredMatch on the controller instead of on the scope. fixes angular#3475
Properly set require-match=true in demos so that the value is correct in the components. Check for requiredMatch on the controller instead of on the scope. fixes angular#3475
Properly set require-match=true in demos so that the value is correct in the components. Check for requiredMatch on the controller instead of on the scope. fixes angular#3475 closes angular#4108
Still seeing this issue: Type in "ca", cabbage will pop up and be auto selected. Hit 'enter'. You'll see two chips get added - what you searched for and the cabbage chip. Expecting only the cabbage chip. |
Definitely seeing an issue in your codepen - reopening. |
In the mean time I've added the following line to fix the issue:
To:
There is probably a better way to handle this, but this get's me moving. |
@jherman I'm facing the same issue, and I'm probably missing something, but adding the above line prevents from any of the chips from being added. What do you think about the following suggestion to your line? var selectedChip = angular.element(document.querySelectorAll("md-virtual-repeat-container:not(.ng-hide) li[md-virtual-repeat].selected"));
if (selectedChip.length && selectedChip.scope().item != newChip) return; |
That's strange that it's not working for you. I'm using v0.11.4 in case you are using something different. Regardless, since this is just a bandage for the time being, I would just do that if that fixes it for you. I imagine @robertmesserle is on the case now, and it'll be fixed relatively soon; which means I'll just be updating to the latest when it does get released. |
@robertmesserle PR #5497 may fix this as well. |
@topherfangio Can you let me know when that's merged in? I'll re-test once that's in. |
@topherfangio can you check if this is still an issue? |
@robertmesserle @jelbourn The Codepen above is no longer showing the issue (it uses HEAD), so I think this can be closed. Let me know if you think otherwise and we can reopen. |
When I check Chips in the demode, Chips work quite well when search text not found in collection. And I don't have any idea why I am having this problem. I am using Angularjs 1.4.0 and other dependencies.
The text was updated successfully, but these errors were encountered: