mirror of
https://github.com/supabase/supabase.git
synced 2026-10-11 12:25:05 +03:00
Bug fix ## What is the current behavior? Clipboard write operations can fail silently in Safari due to timing issues with the browser's security model. ## What is the new behavior? Re-add setTimeout(0) wrapper for Safari clipboard write reliability while using a signalling promise to preserve correct await behavior for callers. ## Additional context Resolves FE-2449 ## Summary by CodeRabbit * **Bug Fixes** * Improved clipboard copy behavior: copy operations now return a promise that resolves only after the copy and any provided callback complete, ensuring more reliable timing and consistent completion signals across browsers (notably addressing Safari timing issues).