Skip to content

bug: affiliate dashboard copy buttons fail when Clipboard API is blocked #153

@absalonCRC

Description

@absalonCRC

Bug

The affiliate dashboard copy buttons call navigator.clipboard.writeText() directly. In browsers or embedded contexts where the Clipboard API is unavailable or blocked by permissions, copying affiliate tracking links and seller share links fails.

The UI also flips to the copied state immediately without waiting for the copy operation to succeed.

Expected

Affiliate tracking/share links should still be copyable when navigator.clipboard is unavailable or rejected, using the existing textarea + document.execCommand("copy") fallback pattern used elsewhere in the app.

Proposed fix

Add a small resilient copy helper to the affiliate dashboard client, await the copy result, use the fallback path when needed, and only show the copied state after a successful copy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions