Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Literally got these backwards, womp womp
  • Loading branch information
vcarl committed Jan 2, 2020
commit 2a1088c03a09d09467a944a1a85fc52213de737b
8 changes: 4 additions & 4 deletions packages/react-dom/src/client/ReactDOMInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ export function updateWrapper(element: Element, props: Object) {
) {
console.error(
'A component is changing an uncontrolled input to be controlled. ' +
'This is likely caused by the value changing from a defined to ' +
'undefined, which should not happen. ' +
'This is likely caused by the value changing from undefined to ' +
'a defined value, which should not happen. ' +
'Decide between using a controlled or uncontrolled input ' +
'element for the lifetime of the component. More info: https://fb.me/react-controlled-components',
);
Expand All @@ -156,8 +156,8 @@ export function updateWrapper(element: Element, props: Object) {
) {
console.error(
'A component is changing a controlled input to be uncontrolled. ' +
'This is likely caused by the value changing from undefined to ' +
'a defined value, which should not happen. ' +
'This is likely caused by the value changing from a defined to ' +
'undefined, which should not happen. ' +
'Decide between using a controlled or uncontrolled input ' +
'element for the lifetime of the component. More info: https://fb.me/react-controlled-components',
);
Expand Down