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

Added ability to lock an item from dismissal via the locked flag #62

Merged

Conversation

butchmarshall
Copy link
Contributor

  1. Added ability to lock an item from dismissal via the locked flag

We needed the ability to lock a snackbar message so that it wouldn't be dismissed when maxSnack was hit.

  1. handleDismissOldest will now call items onClose

When an item was being dismissed because due to maxSnack we needed to know about it. An items onClose event will now be called if this happens with the reason "maxsnack"

handleDismissOldest will now call items onClose
@iamhosseindhv iamhosseindhv merged commit 43923bf into iamhosseindhv:master Feb 8, 2019
@iamhosseindhv
Copy link
Owner

Thanks @butchmarshall for your contribution. An improved version of your solution is now in master and will be published in the next release. ❤️

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