Skip to content

Mat-menu's hasBackdrop attribute doesn't affect overaly when changes pro-grammatically  #14560

@lokeshdaiya

Description

@lokeshdaiya

What is the expected behavior?

We should be able to toggle overlay backdrop using input hasBackdrop

What is the current behavior?

If value is changed for hasBackdrop input programmatically then it does not apply the changes.

What are the steps to reproduce?

https://stackblitz.com/edit/angular-gjsjab

  1. Open above link
  2. Inspect menu overlay for both true and false value.
  3. You will see class is not removed when we set it to false

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

7+

Is there anything else we should know?

image

image

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions