Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

autocomplete: dropdown detaches on scroll when inside $mdDialog #11478

@papb

Description

@papb

Bug

CodePen and steps to reproduce the issue:

CodePen which demonstrates the issue: YJZyyE

Detailed Reproduction Steps:

GIF showing issue

  1. Open the md-dialog
  2. Click on the autocomplete, so that the dropdown appears
  3. Scroll the page

What is the expected behavior?

Either the scroll should be disabled (which is the default behavior when the md-autocomplete is not inside a md-dialog), or the scroll should happen but with the dropdown not detaching.

What is the current behavior?

The scroll happens with the dropdown menu detaching itself from the autocomplete field.

What is the use-case or motivation for changing an existing behavior?

This is bad UX

Which versions of AngularJS, Material, OS, and browsers are affected?

  • AngularJS: 1.6.9
  • AngularJS Material: 1.1.10
  • OS: Tested in Windows
  • Browsers: Tested in Chrome

Metadata

Metadata

Assignees

Labels

P2: requiredIssues that must be fixed.needs: investigationThe cause of this issue is not well understood and needs to be investigated by the team or communitytype: bug

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions