Repository navigation
feat(Select): add nullableValue prop - #2641
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThis PR adds a ChangesSelectRoot nullableValue Prop
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
commit: |
🔗 Linked issue
Resolves #1975
❓ Type of change
📚 Description
Adds a
nullableValueprop toSelectRootso consumers can customize the hidden native select option value used whenmodelValueis nullish.This keeps the existing default behavior (
"") while allowing forms to submit another sentinel value such as"null"for server-side type handling.nullableValue?: stringtoSelectRootPropsnullableValueto an empty string for backward compatibilitynullableValuefor the nullish hidden<option>in the native bubble selectdocs/content/meta/SelectRoot.md📸 Screenshots (if appropriate)
N/A
📝 Checklist
Summary by CodeRabbit
Release Notes
New Features
nullableValueprop to the Select component, allowing customization of the value assigned when no selection is made. Defaults to an empty string to maintain backward compatibility.Documentation
nullableValueprop.Tests