-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
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
Question: Is there a way to keep the snackbar on the page? #2811
Comments
The snackbar is controlled by the |
@DavidLGoldberg I don't think you can use autoHideDuration, but not have it close when you click outside the Snackbar. If that's the issue, you would need to create your own timer to control |
Hmm, ok interesting. Not that crucial at the moment for me. Thanks! |
This comment has been minimized.
This comment has been minimized.
Ah, I tried to do the onRequestClose, didn't look deep enough thanks! |
Would some kind of preventDefault()? or return false be the trick here? Not exactly sure how to use it. (I'm a react n00b unfortunately) |
This comment has been minimized.
This comment has been minimized.
Oh, that's good to know. That needs to be documented... |
Thanks so much for the lightning fast help guys 👍 |
I agree, let's wait #2417 to be resolved before closing this issue. |
This comment has been minimized.
This comment has been minimized.
I believe this is just function(event: object, reason: string) => void |
If a user clicks anywhere on the page (not the snackbar), this currently closes the snackbar. Is there a way to prevent this?
Thanks! (Great project btw!)
The text was updated successfully, but these errors were encountered: