Skip to content

Quick clicks crash/lock-up snack-bar #2886

@JanStureNielsen

Description

@JanStureNielsen

Bug, feature request, or proposal:

Bug

What is the expected behavior?

Fast clicks on snackbar should not crash/lock-up the component.

What is the current behavior?

If you click the snackbar quickly, say five times, the snackbar becomes unresponsive and it stays visible. A refresh is required to reset the component.

What are the steps to reproduce?

https://material.angular.io/components/component/snack-bar

Click "SHOW SNACK-BAR" button five times as quickly as possible.

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

POLA :-)

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

"@angular/common": "2.4.5",
"@angular/compiler": "2.4.5",
"@angular/compiler-cli": "2.4.5",
"@angular/core": "2.4.5",
"@angular/forms": "2.4.5",
"@angular/http": "2.4.5",
"@angular/material": "2.0.0-beta.1",
"@angular/platform-browser": "2.4.5",
"@angular/platform-browser-dynamic": "2.4.5",
"@angular/router": "3.4.5",

Fails on Chrome/Linux, Chrome/Mac, Firefox/Linux -- likely all browsers.

Is there anything else we should know?

We are enjoying Angular and Material!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions