mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Fix wrong deduplication condition
This commit is contained in:
+2
-2
@@ -38,9 +38,9 @@ function flattenChildren(children) {
|
||||
export function validateProps(element: Element, props: Object) {
|
||||
// TODO (yungsters): Remove support for `selected` in <option>.
|
||||
if (__DEV__) {
|
||||
if (!didWarnSelectedSetOnOption) {
|
||||
if (props.selected != null && !didWarnSelectedSetOnOption) {
|
||||
warning(
|
||||
props.selected == null,
|
||||
false,
|
||||
'Use the `defaultValue` or `value` props on <select> instead of ' +
|
||||
'setting `selected` on <option>.',
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user