Skip to content

Commit 05867ea

Browse files
committed
Adjust warning
1 parent e00e051 commit 05867ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-dom-bindings/src/client/ReactDOMOption.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export function validateOptionProps(element: Element, props: Object) {
5656
if (props.selected != null && !didWarnSelectedSetOnOption) {
5757
console.error(
5858
'Use the `defaultValue` or `value` props on <select> instead of ' +
59-
'setting `selected` on <option>.',
59+
'setting `selected` on <option>. Otherwise form reset may not work as expected.',
6060
);
6161
didWarnSelectedSetOnOption = true;
6262
}

0 commit comments

Comments
 (0)