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.

When md-autocomplete is removed (by ng-if) the md-scroll-mask is not removed. #9318

@leibale

Description

@leibale

When md-autocomplete is removed (by ng-if) the md-scroll-mask is not removed.
@cah-alexsukhodolsky tried to fix it in 042086f, but he didn't cover the scenario when md-autocomplete is removed immediately after an item is chosen.
The $mdUtil.nextTick doesn't call the $mdUtil.enableScrolling (because the $scope is destroyed) and the cleanup function will not remove the md-scroll-mask (because the ctrl.hidden is true).

CodePen Demo

Angular Versions: *

  • Angular Version: 1.5.8
  • Angular Material Version: 1.1.0-rc.5

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions