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

Keep it always open? #17

Open
FezVrasta opened this issue Jan 29, 2021 · 1 comment
Open

Keep it always open? #17

FezVrasta opened this issue Jan 29, 2021 · 1 comment

Comments

@FezVrasta
Copy link

Hi, I'd like to keep the snackbar open indefinitely, but I tried to set the duration to 0, Infinity and Number.MAX_SAFE_INTEGER but neither of these work (it instantly closes).

What am I missing?

@Sarfraz-droid
Copy link

That is because When delay is larger than 2147483647 or less than 1, the delay will be set to 1.

There was a small change. that would just set the delay value if delay value is greater than 2147483647

if(duration > 2147483647 ) setDuration(2147483647)

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

No branches or pull requests

2 participants