diff --git a/src/renderers/dom/client/wrappers/ReactDOMInput.js b/src/renderers/dom/client/wrappers/ReactDOMInput.js index 031faf14b6..04afa14983 100644 --- a/src/renderers/dom/client/wrappers/ReactDOMInput.js +++ b/src/renderers/dom/client/wrappers/ReactDOMInput.js @@ -36,10 +36,10 @@ function forceUpdateIfMounted() { function warnIfValueIsNull(props) { if (props != null && props.value === null && !didWarnValueNull) { warning( - false, - '`value` prop on `input` should not be null. ' + - 'Consider using the empty string to clear the component or' + - ' `undefined` for uncontrolled components.' + false, + '`value` prop on `input` should not be null. ' + + 'Consider using the empty string to clear the component or `undefined` ' + + 'for uncontrolled components.' ); didWarnValueNull = true; diff --git a/src/renderers/dom/client/wrappers/ReactDOMSelect.js b/src/renderers/dom/client/wrappers/ReactDOMSelect.js index 7d970714a3..14d9ef8074 100644 --- a/src/renderers/dom/client/wrappers/ReactDOMSelect.js +++ b/src/renderers/dom/client/wrappers/ReactDOMSelect.js @@ -47,10 +47,10 @@ function getDeclarationErrorAddendum(owner) { function warnIfValueIsNull(props) { if (props != null && props.value === null && !didWarnValueNull) { warning( - false, - '`value` prop on `select` should not be null. ' + - 'Consider using the empty string to clear the component or' + - ' `undefined` for uncontrolled components.' + false, + '`value` prop on `select` should not be null. ' + + 'Consider using the empty string to clear the component or `undefined` ' + + 'for uncontrolled components.' ); didWarnValueNull = true; diff --git a/src/renderers/dom/client/wrappers/ReactDOMTextarea.js b/src/renderers/dom/client/wrappers/ReactDOMTextarea.js index f5a1b97806..afcd103e98 100644 --- a/src/renderers/dom/client/wrappers/ReactDOMTextarea.js +++ b/src/renderers/dom/client/wrappers/ReactDOMTextarea.js @@ -32,10 +32,10 @@ function forceUpdateIfMounted() { function warnIfValueIsNull(props) { if (props != null && props.value === null && !didWarnValueNull) { warning( - false, - '`value` prop on `textarea` should not be null. ' + - 'Consider using the empty string to clear the component or' + - ' `undefined` for uncontrolled components.' + false, + '`value` prop on `textarea` should not be null. ' + + 'Consider using the empty string to clear the component or `undefined` ' + + 'for uncontrolled components.' ); didWarnValueNull = true; diff --git a/src/renderers/dom/client/wrappers/__tests__/ReactDOMInput-test.js b/src/renderers/dom/client/wrappers/__tests__/ReactDOMInput-test.js index 7fdd531b89..da680b92af 100644 --- a/src/renderers/dom/client/wrappers/__tests__/ReactDOMInput-test.js +++ b/src/renderers/dom/client/wrappers/__tests__/ReactDOMInput-test.js @@ -407,8 +407,9 @@ describe('ReactDOMInput', function() { it('should throw warning message if value is null', function() { ReactTestUtils.renderIntoDocument(); expect(console.error.argsForCall[0][0]).toContain( - '`value` prop on `input` should not be null. Consider using the empty string to clear the component or' - + ' `undefined` for uncontrolled components.' + '`value` prop on `input` should not be null. ' + + 'Consider using the empty string to clear the component or `undefined` ' + + 'for uncontrolled components.' ); ReactTestUtils.renderIntoDocument(); diff --git a/src/renderers/dom/client/wrappers/__tests__/ReactDOMSelect-test.js b/src/renderers/dom/client/wrappers/__tests__/ReactDOMSelect-test.js index 9b44ef2750..ac7f67819a 100644 --- a/src/renderers/dom/client/wrappers/__tests__/ReactDOMSelect-test.js +++ b/src/renderers/dom/client/wrappers/__tests__/ReactDOMSelect-test.js @@ -469,8 +469,9 @@ describe('ReactDOMSelect', function() { ReactTestUtils.renderIntoDocument(); expect(console.error.argsForCall[0][0]).toContain( - '`value` prop on `select` should not be null. Consider using the empty string to clear the component or' - + ' `undefined` for uncontrolled components.' + '`value` prop on `select` should not be null. ' + + 'Consider using the empty string to clear the component or `undefined` ' + + 'for uncontrolled components.' ); ReactTestUtils.renderIntoDocument(); diff --git a/src/renderers/dom/client/wrappers/__tests__/ReactDOMTextarea-test.js b/src/renderers/dom/client/wrappers/__tests__/ReactDOMTextarea-test.js index 4f1ff4e757..948b1b6790 100644 --- a/src/renderers/dom/client/wrappers/__tests__/ReactDOMTextarea-test.js +++ b/src/renderers/dom/client/wrappers/__tests__/ReactDOMTextarea-test.js @@ -271,8 +271,9 @@ describe('ReactDOMTextarea', function() { ReactTestUtils.renderIntoDocument(