carbon
carbon copied to clipboard
Select (With Object): First open, the value is not selected
trafficstars
Description
The first time that we open the Select, we cannot see the option selected. By the way, do we really need to use a useRef in this case ?
Reproduction
https://carbon.sage.com/?path=/docs/select--with-object-as-value
Steps to reproduce
After loading the page:
- Open the select
- No value are loaded (Normally Green need to be selected)
JIRA ticket numbers (Sage only)
No response
Suggested solution
No response
Carbon version
126.5.0
Design tokens version
4.23.0
Relevant browsers
Chrome
Relevant OSs
MacOS
Additional context
No response
Confidentiality
- [X] I confirm there is no confidential or commercially sensitive information included.
FE-6387
You are right, we will improve our documentation here as the example is not great. Functionally this does work but our example doesn't pass the correct value object.
:tada: This issue has been resolved in version 131.0.1 :tada:
The release is available on:
Your semantic-release bot :package::rocket: