Skip to content

Imposible to select prompt #415

Closed

Description

@RomkaLTU

The copy action does not work, and selecting text within the textarea is not possible. The only way I have been able to select the prompt is using the developer tools.

Activity

  1. aidenybai commented on May 2, 2026

    @aidenybai
    Owner

    Fixed in v0.5.5 via #437.

    Two layered causes: the toolbar root has select-none (so dragging doesn't start a text selection) AND its root onPointerDown calls e.preventDefault() (which suppresses focus and selection on every click). Together they made the AI-prompt <pre> impossible to highlight or copy.

    Fix:

    • New TOOLBAR_INTERACTIVE_SELECTOR constant lists elements that should bypass drag and accept native focus/selection. Used from both the JSX (drag handler bail-out) and the CSS (user-select: text re-enable) — single source of truth.
    • handleDrag now bails — without calling preventDefault() — when the pointerdown lands on button, a, input, textarea, select, pre, [contenteditable], [data-react-scan-selectable].
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions