Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(react): correctly init options when value (or defaultValue) provided #1849

Merged
merged 1 commit into from
Jul 25, 2022

Conversation

josokinas
Copy link
Contributor

Purpose

Fix a case when options not initialized correctly with value or defaultValue set.

Approach

Initiate with 1st option only in case of no current value set, otherwise look up for it.

Testing

Tested locally via Storybook.

Risks

N/A

@josokinas josokinas self-assigned this Jul 25, 2022
@vercel
Copy link

vercel bot commented Jul 25, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
castor ✅ Ready (Inspect) Visit Preview Jul 25, 2022 at 10:19AM (UTC)

@josokinas josokinas force-pushed the fix/init-options-value branch from b86bd75 to f974c5e Compare July 25, 2022 10:14
@josokinas josokinas merged commit 2d11f0a into main Jul 25, 2022
@josokinas josokinas deleted the fix/init-options-value branch July 25, 2022 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants