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

Safe override of TransitionProps #194

Merged

Conversation

simonbos
Copy link
Contributor

As of now, a user can only override the full TransitionProps (and not extend it), which can lead to bugs because of the handleExitedScreen callback not being fired. This PR fixes this bug.

Bug example: https://codesandbox.io/s/notistack-simple-example-wp5bc (Click on default, wait a bit and click on another button. The second snackbar is not rendered because the handleExitedScreen callback is not fired and thus the first snackbar is not removed, leaving no place since maxSnack={1}.)

@iamhosseindhv iamhosseindhv merged commit 699c6f5 into iamhosseindhv:master Dec 1, 2019
@iamhosseindhv
Copy link
Owner

Thanks @simonbos for your contribution. 💚

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants