Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

[terra-form-select] Native Select allow initial values #3829

Merged
merged 8 commits into from
Jul 3, 2023

Conversation

MadanKumarGovindaswamy
Copy link
Contributor

@MadanKumarGovindaswamy MadanKumarGovindaswamy commented Jun 23, 2023

Summary

What was changed:

Changes made to allow initial null value.

Why it was changed:
NativeSelect does not allow updating the value prop in subsequent renders

Testing

This change was tested using:

  • WDIO
  • Jest
  • Visual testing (please attach a screenshot or recording)
  • Other (please describe below)
  • No tests are needed

Reviews

In addition to engineering reviews, this PR needs:

  • UX review
  • Accessibility review
  • Functional review

Additional Details

This PR resolves:

UXPLATFORM-9184


Thank you for contributing to Terra.
@cerner/terra

@sdadn sdadn changed the title Update: Native Select allow initial values [terra-form-select] Native Select allow initial values Jun 26, 2023
const refIsControlled = isValuePresent(value);

useEffect(() => {
// added this to allow initial null values
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this condition was not added to allow initial null values !!

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

@github-actions github-actions bot temporarily deployed to preview-pr-3829 July 3, 2023 06:47 Destroyed
@saket2403 saket2403 merged commit 01fa65c into main Jul 3, 2023
21 checks passed
@saket2403 saket2403 deleted the UXPLATFORM-9184-NativeSelectAllowNullInitialValue branch July 3, 2023 10:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants