Skip to content

@twilio-paste/[email protected]

Compare
Choose a tag to compare
@TwilioPasteBot TwilioPasteBot released this 20 Oct 17:04
· 190 commits to main since this release
d1f89ea

Patch Changes

  • bc51057db #3545 Thanks @SiTaggart! - [Select] fix the hydration issue which caused the defaultValue prop to not be respected.

    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. To fix the hydration and defaultValue
    together we now re-render the entire Select on mount.