material icon indicating copy to clipboard operation
material copied to clipboard

md-autocomplete not showing some suggestions

Open wil93 opened this issue 11 years ago • 21 comments

It worked correctly with 1.0.0-rc2:

old

Now I upgraded to 1.0.0-rc3 and it doesn't show some suggestions:

new1

After scrolling a bit, more suggestions appear:

new2

wil93 avatar Nov 07 '15 17:11 wil93

+1

ghost avatar Nov 07 '15 17:11 ghost

Yeah, I'm having this problem too

Patrik-Lundqvist avatar Nov 09 '15 13:11 Patrik-Lundqvist

Temporary fix for this problem is:

.md-virtual-repeat-container.md-autocomplete-suggestions-container
  height: 120px

idoo avatar Nov 09 '15 13:11 idoo

Fixed by reverting 330419b

issue: #5561

How could this even get merged without checking first? That PR in it's entirety was awful... suggestions for changes without anything being done, still gets merged.

hillerstorm avatar Nov 09 '15 13:11 hillerstorm

This isn't reproducing for me on the Autocomplete demo page. Can someone post an example?

kseamon avatar Nov 09 '15 17:11 kseamon

Question for those affected by this: Is your autocomplete in an ng-hide? If so, #5579 should fix it.

kseamon avatar Nov 09 '15 17:11 kseamon

1.0.0-rc3 Autocomplete > Inside Dialog There is only 3 items displayed at a time.

hexadecy avatar Nov 09 '15 21:11 hexadecy

@kseamon: my autocomplete is not in an ng-hide, but it's beside one.

wil93 avatar Nov 10 '15 03:11 wil93

@kseamon here is a gif to reproduce. Try to resize you window and focus again on the autocomplete input.

b4672164-859c-11e5-92f9-343cc5c9fe85

NicolasBlois avatar Nov 11 '15 01:11 NicolasBlois

@blootch Thanks - that tells me exactly what I need actually.

kseamon avatar Nov 11 '15 17:11 kseamon

Ok, made a tweak to #5579 and it fixes this issue.

kseamon avatar Nov 11 '15 17:11 kseamon

@idoo That temporary fix is not working for me.

thomasrye avatar Nov 11 '15 21:11 thomasrye

@kseamon with pleasure. I think this issue has something to do with md-virtual-repeat.

NicolasBlois avatar Nov 12 '15 20:11 NicolasBlois

I confirm this is fixed in 1.0.0-rc4

wil93 avatar Nov 15 '15 16:11 wil93

The issue is still here in 1.0.0-rc4

gabguy avatar Nov 17 '15 06:11 gabguy

+1 not working for me in 1.0.0-rc4

lillylykho avatar Nov 17 '15 06:11 lillylykho

+1 The issue still here in 1.0.0-RC4.

gligoran avatar Nov 18 '15 10:11 gligoran

I'm not seeing it in rc4. Those who are seeing it: what browser are you using? Are you just looking at the demo page, or some other page? If another page, what other libraries are you using? What version of Angular?

kseamon avatar Nov 20 '15 16:11 kseamon

@kseamon Go to: https://material.angularjs.org/latest/demo/autocomplete and mark the 'Simulate query for results?' checkbox. Now search for 'California', then 'Shift'+'Home' to mark the intire word and press 'Delete', you will see the issue...

(BTW: Using Chrome)

gabguy avatar Nov 22 '15 08:11 gabguy

I managed to reproduce this (and I actually found it easier to reproduce without the "Simulate query" option).

This is what I see when I reproduce the bug: bug

As you can see there are only 4 virtual-repeat elements, when 5 are needed.

This, instead, is what I see when I don't reproduce it (or when I reproduce it and then resize the window a bit, and "California" magically appears): no bug

Now there are 6 elements.

wil93 avatar Nov 23 '15 00:11 wil93