Skip to content

react-aria-components: <SelectValue> breaks when not inside a <Button> #8738

Closed

Description

@barvian

Provide a general summary of the issue here

https://codesandbox.io/p/devbox/j3w789

You'll see an error occurs that seems to be caused by the <SelectValue> being outside of the <Button> component. If I move the <SelectValue> inside the <Button> component the issue is resolved.

🤔 Expected Behavior?

I'd expect <SelectValue/> to work anywhere in a <Select>, not just a <Button>.

😯 Current Behavior

Image

💁 Possible Solution

Strangely, if I wrap the <SelectValue> in an <ErrorBoundary> from react-error-boundary, the issue resolves 🤔

🔦 Context

No response

🖥️ Steps to Reproduce

https://codesandbox.io/p/devbox/j3w789

  1. Open preview, the error should immediately occur

Version

react-aria-components 1.11.0

What browsers are you seeing the problem on?

Chrome

If other, please specify.

No response

What operating system are you using?

macOS

🧢 Your Company/Team

No response

🕷 Tracking Issue

No response

Activity

  1. devongovett commented on Aug 19, 2025

    @devongovett
    Member

    Coincidentally, I just fixed this in this PR: #8734. Specifically this change:3b53af0#diff-ab734185bb649e0bcd476cbc8d9d6b72a678210aa5f6dff59bbe954b11b3d3c5R254

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