material icon indicating copy to clipboard operation
material copied to clipboard

mdAutocomplete: dropdown list and scrolling

Open ThomasBurleson opened this issue 11 years ago • 12 comments

When I have a dropdown open:

screen shot 2015-04-13 at 1 45 59 pm

And then I scroll the window, the dropdown gets disconnected:

screen shot 2015-04-13 at 1 46 57 pm

Perhaps scrolling should simply auto-close the dropdown.

ThomasBurleson avatar Apr 13 '15 18:04 ThomasBurleson

@robertmesserle md-autocomplete should re-snap on window scroll.

typotter avatar Apr 29 '15 03:04 typotter

@rschmukler - resposition or scroll-lock like we do with md-select.

I think we need to be consistent.

ThomasBurleson avatar Apr 29 '15 14:04 ThomasBurleson

@robertmesserle - (discussed this with @rschmukler) Let's make the mdAutoComplete and the mdSelect consistent and both use the disable scroll (aka scrollLock) feature.

But before we do this let's see how the mdSelect use of scroll lock works in the wild during 0.10.

ThomasBurleson avatar Apr 29 '15 14:04 ThomasBurleson

I definitely think it would be better to update the position on scroll rather than disable scrolling.

On Wed, Apr 29, 2015 at 7:47 AM, Thomas Burleson [email protected] wrote:

@robertmesserle https://github.com/robertmesserle - (discussed this with @rschmukler https://github.com/rschmukler) Let's make the mdAutoComplete and the mdSelect consistent and both use the disable scroll (aka scrollLock) feature.

But before we do this let's see how the mdSelect use of scroll lock works in the wild during 0.10.

— Reply to this email directly or view it on GitHub https://github.com/angular/material/issues/2296#issuecomment-97453708.

robertmesserle avatar Apr 29 '15 17:04 robertmesserle

It is better to have it as a configuration.Because there is a jerk in Page when u click on md-autocomplete box.It tries to disable scroll even scroll is not their in the page.

ramanathan92 avatar Aug 10 '15 18:08 ramanathan92

Disable scroll confuses users. Got a lot of angry emails and feedback when they just can't scroll out of the dropdown. Please remove the scrollLock feature.

EDIT

Actually the scrolllock is only on multi- md-select. Nvm please ignore my comment, but md-select shouldn't scrollLock anyway.

pencilcheck avatar Sep 21 '15 07:09 pencilcheck

Also having problems with this on a sticky header and a scrollable content (@v1.0.0-rc2):

screen shot 2015-11-02 at 16 24 51

joaovieira avatar Nov 02 '15 16:11 joaovieira

@robertmesserle: Was this fixed or just closed? I could not find a commit which referenced this issue.

JakeHedman avatar Jan 22 '16 15:01 JakeHedman

screen lock on md-select still there, clients are confused with this feature.

bvsbharat avatar Aug 23 '16 09:08 bvsbharat

This issue still appearing if you use md-autocomplete in md-dialog.

ravikajain avatar Nov 28 '16 06:11 ravikajain

Any solution for this issue?

perpetualtraveler avatar May 29 '18 22:05 perpetualtraveler

@perpetualtraveler please open a new issue with a reproduction.

Splaktar avatar Jun 06 '18 06:06 Splaktar