carbon icon indicating copy to clipboard operation
carbon copied to clipboard

Select (With Object): First open, the value is not selected

Open hegou33 opened this issue 1 year ago • 1 comments
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.

hegou33 avatar Feb 21 '24 15:02 hegou33

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.

nicktitchmarsh avatar Feb 27 '24 14:02 nicktitchmarsh

:tada: This issue has been resolved in version 131.0.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

carbonci avatar Apr 09 '24 15:04 carbonci