Skip to content

Commit

Permalink
chore: update the select changeset to better reflect the updated chan…
Browse files Browse the repository at this point in the history
…ge (#3563)
  • Loading branch information
SiTaggart authored Oct 18, 2023
1 parent 9f49567 commit 6cc2ee4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .changeset/thirty-forks-poke.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@

Since the React v18 upgrade, we were only rendering the children options after the component and html select
wrapper had mounted. The select would mount with a `defaultValue` of a child that didn't exist, then the
children would be added, so it wouldn't know what value to select. By adding a `key` prop to the select,
it now knows to re-render on mount with the children, and can properly lookup the correct value now.
children would be added, so it wouldn't know what value to select. To fix the hydration and `defaultValue`
together we now re-render the entire Select on mount.

0 comments on commit 6cc2ee4

Please sign in to comment.