-
Notifications
You must be signed in to change notification settings - Fork 116
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): enable defaultValue to work correctly by removing rehydration hack #3545
Conversation
Run & review this pull request in StackBlitz Codeflow. |
🦋 Changeset detectedLatest commit: 4622646 The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
✅ Deploy Preview for paste-theme-designer ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 4622646. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 1 targetSent with 💌 from NxCloud. |
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 4622646:
|
✅ Deploy Preview for paste-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Size Change: +34 B (0%) Total Size: 1 MB
ℹ️ View Unchanged
|
Passing run #7014 ↗︎
Details:
Review all test suite changes for PR #3545 ↗︎ |
93f167c
to
fb18df9
Compare
Description and useful links to discussions / issues / tickets
Changes in this PR:
Fix defaultValue for Select
In an effort to prevent the rehydration issue on NExtJS we implemented a "fix" in the select component that would only render Options after mount. Which in theory prevents a style tag being added to the select element in the server rendered HTML.
This inadvertantly prevented
defaultValue
from working. Removing it fixes Default Value.Checklist
required
checks have passed🕵🏻♀️ Run website visual regression
label