Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Snackbar] Add check for autoHideDuration if equals 0 #12002

Merged
merged 3 commits into from
Jun 28, 2018
Merged

[Snackbar] Add check for autoHideDuration if equals 0 #12002

merged 3 commits into from
Jun 28, 2018

Conversation

C-Rodg
Copy link
Contributor

@C-Rodg C-Rodg commented Jun 28, 2018

Hey,
I've added a check to prevent the Snackbar component from using the autoHideDuration property if a '0' is passed in. This fixes #11946.

Thanks!

@oliviertassinari
Copy link
Member

@C-Rodg Could you add a unit test? Thanks :)

@oliviertassinari oliviertassinari added bug 🐛 Something doesn't work component: snackbar This is the name of the generic UI component, not the React module! labels Jun 28, 2018
@C-Rodg
Copy link
Contributor Author

C-Rodg commented Jun 28, 2018

@oliviertassinari unit test has been added!

@oliviertassinari oliviertassinari merged commit d5c15bf into mui:master Jun 28, 2018
@oliviertassinari
Copy link
Member

@C-Rodg It's perfect 👌 , you rock 🎸 .

acroyear pushed a commit to acroyear/material-ui that referenced this pull request Jul 14, 2018
* Add check for snackbar autoHideDuration if equals 0

* Add unit test for resumeHideDuration equaling zero

* fix anothre potential issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: snackbar This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants