material icon indicating copy to clipboard operation
material copied to clipboard

contact chips adding an empty object / not filtering already selected contacts

Open fxck opened this issue 11 years ago • 8 comments

So the first problem, when you go to https://material.angularjs.org/latest/#/demo/material.components.chips and enter something like "foo bar" and press enter, this is going to happen

image

And the second, when "Marina Augustine" is already as a selected contact chip, you can still see her in the suggestions, you are not able to select her, but still.. I'd expect filter-selected to remove her from the list.

Also I'd be nice if you could get the suggestions just by focusing the input, rather than having to input at least one letter..

fxck avatar Sep 02 '15 10:09 fxck

The first problem is not necessarily a duplicate of https://github.com/angular/material/issues/4404 since I don't as much care about selecting an item from suggestion when pressing enter, as about it creating a new item when no suggestion is found..

fxck avatar Sep 02 '15 12:09 fxck

Can you test this out a bit against the master demo: https://material.angularjs.org/HEAD/#/demo/material.components.chips

I know that there have been a few changes to chips recently, and when I type "foo bar" and press enter, nothing happens (because it's not found).

If it still doesn't work as expected, can you please tell us what browser you're using?

topherfangio avatar Sep 02 '15 19:09 topherfangio

image

this happens on master when I type in "M"

image

this when "foo bar", pressing enter then does nothing indeed, but whether it's because it's bugged or because it was fixed, I don't know

and it's mac / chrome 45

fxck avatar Sep 03 '15 06:09 fxck

I see this behavour as well. Osx and Chrome. It is working on 0.11.0-rc1 but is broken on head/ master

hkgrani avatar Sep 03 '15 13:09 hkgrani

@fxck @hkgrani This is a known issue (#4390). The contents of the dropdown are not appearing properly, but the interaction should actually be working (i.e. if you search for nick and hit enter, Nick will be added to the list of chips). We're working to get this resolved.

@hkgrani Are you sure it's working in 0.11.0-rc1? I do not see the dropdown appearing properly there either: https://material.angularjs.org/0.11.0-rc1/#/demo/material.components.chips

We will review this issue again when the dropdown is working to ensure that the issues are fully resolved.

topherfangio avatar Sep 03 '15 17:09 topherfangio

@topherfangio Not shure. I may have tested on a wrong build/ release. Now 0.11.0-rc1 is gone and the link do not longer work.

hkgrani avatar Sep 04 '15 10:09 hkgrani

Might be partially fixed by #5497. Will re-test when that is merged.

topherfangio avatar Nov 03 '15 05:11 topherfangio

I believe this is now fixed in HEAD with the exception of the filter-selected attribute which simply isn't implemented and is being tracked in #4131.

Please comment if you are still seeing issues and I will reopen.

topherfangio avatar Nov 06 '15 01:11 topherfangio