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

modals with timeout? #9

Open
ghost opened this issue Jan 22, 2016 · 3 comments
Open

modals with timeout? #9

ghost opened this issue Jan 22, 2016 · 3 comments

Comments

@ghost
Copy link

ghost commented Jan 22, 2016

I would like a dialog which returns with some predefined value after a short timeout if the user didn't click anything - is that doable?

@kylepaulsen
Copy link
Owner

Do you mean something like this?
https://jsfiddle.net/psfz2gxg/

@ghost
Copy link
Author

ghost commented Jan 23, 2016

yes, this is exactly what I had on my mind. seems so easy once you see the solution..

@ghost
Copy link
Author

ghost commented Jan 24, 2016

of course it is a good idea to remove the timer if the user previously hit an option

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

1 participant