Files
supabase/packages
Charis 0592908b48 fix(ui): restore Safari clipboard support with proper await behavior (#42427)
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).
2026-02-04 16:49:56 -05:00
..