Files
formbricks-formbricks/apps
Cursor Agent cacedbd03a fix: prevent custom scripts from accessing document.body before React hydration
- Add ensureBodyExists() to wait for document.body availability
- Wrap inline script content to defer execution until DOM is ready
- Add defensive checks to prevent race conditions
- Skip wrapping for scripts that already have DOM-ready checks
- Only wrap inline scripts, not external scripts with src attribute

Fixes FORMBRICKS-RW
2026-03-12 20:59:00 +00:00
..