-
-
Notifications
You must be signed in to change notification settings - Fork 302
Description
Feature request
Summary
Currently <Select.Value placeholder="" /> represents the "initial" label before an item has been chosen, even if one was initially chosen on mount. It therefore conflates text shown when value == null, and the value during SSR pre-rendering (and now, in beta.0, before the popup is opened to grab the labels based on the default value).
Motivation
placeholder should only represent value == null, while the initial label when defaultValue or value is pre-selected (during SSR/client pre-mount) must be distinguished to prevent confusion.
In alpha.8, it only affected SSR pre-rendering (it was blank before hydration), but now with the perf improvements to Select, it also affects client rendering too (so it's always blank). As a result we made placeholder required instead of optional. Either way it must be specified manually.
Metadata
Metadata
Assignees
Labels
Projects
Status