Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

Fix controlled/uncontrolled switch #281

Merged
merged 3 commits into from
Dec 8, 2020
Merged

Conversation

jgzuke
Copy link
Contributor

@jgzuke jgzuke commented Dec 8, 2020

Passing undefined to useSelect marks it as an uncontrolled component, which is never what we want here. Guard against cases (loading etc) where the value may not match the options list

📦 Published PR as canary version: 8.5.1-canary.281.6897.0

✨ Test out this PR locally via:

npm install @apollo/space-kit@8.5.1-canary.281.6897.0
# or 
yarn add @apollo/space-kit@8.5.1-canary.281.6897.0

@jgzuke jgzuke requested a review from justinanastos December 8, 2020 19:03
@jgzuke jgzuke added the minor Increment the minor version when merged label Dec 8, 2020
@jgzuke jgzuke merged commit ccf1bce into main Dec 8, 2020
@apollo-bot2
Copy link
Collaborator

🚀 PR was released in v8.6.0 🚀

@apollo-bot2 apollo-bot2 added the released This issue/pull request has been released. label Dec 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
minor Increment the minor version when merged released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants