-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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(Select): handle "defaultValue" #23463
fix(Select): handle "defaultValue" #23463
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 5462e7d:
|
683b5e8
to
ed49f87
Compare
📊 Bundle size report
Unchanged fixtures
|
Perf Analysis (
|
Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
---|---|---|---|---|---|
Avatar | mount | 1657 | 1646 | 5000 | |
Button | mount | 1232 | 1276 | 5000 | |
FluentProvider | mount | 2856 | 2842 | 5000 | |
FluentProviderWithTheme | mount | 913 | 955 | 10 | |
FluentProviderWithTheme | virtual-rerender | 898 | 887 | 10 | |
FluentProviderWithTheme | virtual-rerender-with-unmount | 972 | 973 | 10 | |
MakeStyles | mount | 2477 | 2493 | 50000 |
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: 6840cfac3419b064c2e360b25291c38de905d937 (build) |
@microsoft/cxe-coastal can you please review? It blocks an another PR. Thanks. |
ed49f87
to
5462e7d
Compare
@microsoft/cxe-coastal friendly ping. |
New Behavior
This PR fixes two issues.
defaultValue
inSelect
component (see [Bug]: Select does not handledefaultValue
#23462 for more details)InitialValue
story to usedefaultValue
on<Select />
instead ofselected
on<option />
(see [Bug]: Select features incorrect pattern in stories #23461). It's the official approach, https://reactjs.org/docs/forms.html#the-select-tag. This issue is blocking chore: add SSR tests (test command) #23457 as causes hydration errors with SSR.Related Issue(s)
Fixes #23461
Fixes #23462