Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mdanyalkhan committed Nov 27, 2021
1 parent 82d5677 commit 7f88d1c
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions packages/react-dom/src/server/ReactDOMServerFormatConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -724,8 +724,13 @@ function pushStartOption(
}
}
}

const isAttributeValueRemovable = shouldRemoveAttributeWithWarning('option', value, getPropertyInfo('option'), false);

const isAttributeValueRemovable = shouldRemoveAttributeWithWarning(
'option',
value,
getPropertyInfo('option'),
false,
);
let stringValue;
if (value !== null && !isAttributeValueRemovable) {
if (__DEV__) {
Expand All @@ -744,9 +749,9 @@ function pushStartOption(
}
}
}
stringValue = flattenOptionChildren(children);
stringValue = flattenOptionChildren(children);
}

if (selectedValue != null && stringValue !== undefined) {
if (isArray(selectedValue)) {
// multiple
Expand Down

0 comments on commit 7f88d1c

Please sign in to comment.