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.

Fire an event when a sidenav is closed because md-backdrop is clicked #3981

@infomofo

Description

@infomofo

On the "material.components.sidenav" demo page they demonstrate how you can print a log message when the right sidenav is toggled, and when the close button is explicitly pressed. Both will log events to the console.

https://material.angularjs.org/latest/#/demo/material.components.sidenav

However the close event does NOT fire if you click on the md-backdrop that is generated. If you click on the grey backdrop that appears while the right sidenav is open, it will close the right sidenav but nothing is printed to the log.

What would be the most idiomatic way to have an event like a console log fire when the md-backdrop is clicked. Is this something that needs to be added to the library, or if it already exists, added to the documentation?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions