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.

$mdToast increases watchers but does not remove them if multiple toasts are displayed within a digest. #5193

Closed
@ghost

Description

This is kind of hard to explain, bare with me.

Using $mdToast, if you click one of the buttons to display a toast, rapidly enough so the toast does not disappear between clicks (and multiple toasts are created within 1 digest cycle), it will increase the watcher count considerably but will not remove all of the watchers for all of the toasts.

$mdToast only decreases the watchers for the last toast created within a digest cycle.

Demo: http://codepen.io/anon/pen/avLPqP

Metadata

Metadata

Assignees

Labels

P1: urgentUrgent issues that should be addressed in the next minor or patch release.needs: investigationThe cause of this issue is not well understood and needs to be investigated by the team or community

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions