Files
formbricks-formbricks/apps
Raghuraj Pratap Singh f08a10eefc fix: prevent TypeError in useClickOutside hook during component unmounting
- Add DOM element validation before calling contains() method
- Fix race condition where ref.current becomes non-DOM object during React unmounting
- Apply fix to both apps/web and packages/surveys useClickOutside hooks
- Resolves Sentry issue FORMBRICKS-CLOUD-3WH

The issue occurred when React temporarily assigns non-DOM objects to refs
during component unmounting, causing "t.contains is not a function" error.
The fix adds proper validation to ensure contains() is only called on
actual DOM elements.
2025-10-01 15:31:38 +05:30
..