From ed957372fe70b40bf5c7058fb4659edb7d25fb3a Mon Sep 17 00:00:00 2001 From: Jake Boone Date: Fri, 29 Apr 2016 12:36:16 -0700 Subject: [PATCH] Grammar correction in ReactDOMInput.js warning Changed "a uncontrolled input" to "an uncontrolled input". --- src/renderers/dom/client/wrappers/ReactDOMInput.js | 2 +- .../dom/client/wrappers/__tests__/ReactDOMInput-test.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/renderers/dom/client/wrappers/ReactDOMInput.js b/src/renderers/dom/client/wrappers/ReactDOMInput.js index e0498ca3ad4a9..d4ce97698e3d0 100644 --- a/src/renderers/dom/client/wrappers/ReactDOMInput.js +++ b/src/renderers/dom/client/wrappers/ReactDOMInput.js @@ -177,7 +177,7 @@ var ReactDOMInput = { ) { warning( false, - '%s is changing a uncontrolled input of type %s to be controlled. ' + + '%s is changing an uncontrolled input of type %s to be controlled. ' + 'Input elements should not switch from uncontrolled to controlled (or vice versa). ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components', diff --git a/src/renderers/dom/client/wrappers/__tests__/ReactDOMInput-test.js b/src/renderers/dom/client/wrappers/__tests__/ReactDOMInput-test.js index f7ff9328a6a00..5f0da993e4a95 100644 --- a/src/renderers/dom/client/wrappers/__tests__/ReactDOMInput-test.js +++ b/src/renderers/dom/client/wrappers/__tests__/ReactDOMInput-test.js @@ -499,7 +499,7 @@ describe('ReactDOMInput', function() { ReactDOM.render(, container); expect(console.error.argsForCall.length).toBe(1); expect(console.error.argsForCall[0][0]).toContain( - 'A component is changing a uncontrolled input of type text to be controlled. ' + + 'A component is changing an uncontrolled input of type text to be controlled. ' + 'Input elements should not switch from uncontrolled to controlled (or vice versa). ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components' @@ -541,7 +541,7 @@ describe('ReactDOMInput', function() { ReactDOM.render(, container); expect(console.error.argsForCall.length).toBe(1); expect(console.error.argsForCall[0][0]).toContain( - 'A component is changing a uncontrolled input of type checkbox to be controlled. ' + + 'A component is changing an uncontrolled input of type checkbox to be controlled. ' + 'Input elements should not switch from uncontrolled to controlled (or vice versa). ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components' @@ -583,7 +583,7 @@ describe('ReactDOMInput', function() { ReactDOM.render(, container); expect(console.error.argsForCall.length).toBe(1); expect(console.error.argsForCall[0][0]).toContain( - 'A component is changing a uncontrolled input of type radio to be controlled. ' + + 'A component is changing an uncontrolled input of type radio to be controlled. ' + 'Input elements should not switch from uncontrolled to controlled (or vice versa). ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components'