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
- Use
PromptInputActionAddScreenshot inside PromptInputActionMenuContent in a Base UI project.
- 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.
PromptInputActionAddScreenshotlistens for the menu item’sonSelectevent. 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 toonClickmade screenshot capture work.Steps to reproduce
PromptInputActionAddScreenshotinsidePromptInputActionMenuContentin a Base UI project.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
onSelecthandler.The same event mismatch affects
PromptInputActionAddAttachments.