mirror of
https://github.com/formbricks/formbricks.git
synced 2026-04-19 19:21:15 -05:00
fix survey auto close
This commit is contained in:
@@ -56,6 +56,11 @@ export function AutoCloseWrapper({
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
if (survey.autoClose) {
|
||||
// Reset interaction state when auto-close is enabled
|
||||
setHasInteracted(false);
|
||||
setCountDownActive(true);
|
||||
}
|
||||
startCountdown();
|
||||
return stopCountdown;
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps -- we don't want to run this effect on every render
|
||||
|
||||
Reference in New Issue
Block a user