You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
react-aria-components: <SelectValue> breaks when not inside a <Button> #8738
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
💁 Possible Solution
Strangely, if I wrap the <SelectValue> in an <ErrorBoundary> from react-error-boundary, the issue resolves 🤔
Activity
devongovett commentedon Aug 19, 2025
Coincidentally, I just fixed this in this PR: #8734. Specifically this change:3b53af0#diff-ab734185bb649e0bcd476cbc8d9d6b72a678210aa5f6dff59bbe954b11b3d3c5R254