Skip to content

PromptInputActionAddScreenshot uses a Radix-only event and fails with Base UI #498

Description

@mmikhan

PromptInputActionAddScreenshot listens for the menu item’s onSelect event. That works in the Radix-based docs demo, but not with Base UI’s menu item API. In our Base UI integration, switching the handler to onClick made screenshot capture work.

Steps to reproduce

  1. Use PromptInputActionAddScreenshot inside PromptInputActionMenuContent in a Base UI project.
  2. Open the action menu and select “Take screenshot.”

Expected behavior

The screen-capture picker opens, and the selected capture is added as an image attachment.

Actual behavior

The screenshot action does not run with the Radix-style onSelect handler.

The same event mismatch affects PromptInputActionAddAttachments.

Activity

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