mirror of
https://github.com/formbricks/formbricks.git
synced 2026-05-04 21:01:28 -05:00
f08a10eefc
- 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.