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

Prevent timeout countdown reset when modal appears and when there is user activity #359

Open
1 task done
tempoeric opened this issue Jul 20, 2023 · 1 comment
Open
1 task done
Assignees
Labels
bug A verified and reproducible bug. triage Has not been reviewed yet and should not be worked on.

Comments

@tempoeric
Copy link

What happened?

when there is user activity when modal appears the countdown should not reset to 10 and continue the countdown
https://codesandbox.io/s/confirm-prompt-forked-k7jn5x?file=/src/App.tsx:0-1100

Reproduction Steps

1. Wait for idle modal
2. hover on the countdown
3. when there is user activity the countdown reset to 10
...

Relevant log output

No response

Screenshots or Additional Context

No response

Module Version

5.7.2

What browsers are you seeing the problem on? Select all that apply.

No response

What devices are you seeing the problem on?

No response

Verification

  • I have checked for existing closed issues and discussions.
@tempoeric tempoeric added bug A verified and reproducible bug. triage Has not been reviewed yet and should not be worked on. labels Jul 20, 2023
@CMooney-01
Copy link

This might be what you're looking for: https://idletimer.dev/docs/api/props#stoponidle

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A verified and reproducible bug. triage Has not been reviewed yet and should not be worked on.
Projects
None yet
Development

No branches or pull requests

3 participants