Grammar correction in ReactDOMInput.js warning (#6657)
Changed "a uncontrolled input" to "an uncontrolled input".
Jake Boone committed
May 2, 2016 at 15:23 UTC
393a1798fadb42852b2c7ae6babdc596e423c917
2 files changed
+4
-4
src/renderers/dom/client/wrappers/ReactDOMInput.js
+1
-1
@@ -177,7 +177,7 @@ var ReactDOMInput = {
177
) {
178
warning(
179
false,
180
- '%s is changing a uncontrolled input of type %s to be controlled. ' +
180
+ '%s is changing an uncontrolled input of type %s to be controlled. ' +
181
'Input elements should not switch from uncontrolled to controlled (or vice versa). ' +
182
'Decide between using a controlled or uncontrolled input ' +
183
'element for the lifetime of the component. More info: https://fb.me/react-controlled-components',
src/renderers/dom/client/wrappers/__tests__/ReactDOMInput-test.js
+3
-3
@@ -499,7 +499,7 @@ describe('ReactDOMInput', function() {
499
ReactDOM.render(<input type="text" value="controlled" />, container);
500
expect(console.error.argsForCall.length).toBe(1);
501
expect(console.error.argsForCall[0][0]).toContain(
502
- 'A component is changing a uncontrolled input of type text to be controlled. ' +
502
+ 'A component is changing an uncontrolled input of type text to be controlled. ' +
503
'Input elements should not switch from uncontrolled to controlled (or vice versa). ' +
504
'Decide between using a controlled or uncontrolled input ' +
505
'element for the lifetime of the component. More info: https://fb.me/react-controlled-components'
@@ -541,7 +541,7 @@ describe('ReactDOMInput', function() {
541
ReactDOM.render(<input type="checkbox" checked={true} />, container);
542
expect(console.error.argsForCall.length).toBe(1);
543
expect(console.error.argsForCall[0][0]).toContain(
544
- 'A component is changing a uncontrolled input of type checkbox to be controlled. ' +
544
+ 'A component is changing an uncontrolled input of type checkbox to be controlled. ' +
545
'Input elements should not switch from uncontrolled to controlled (or vice versa). ' +
546
'Decide between using a controlled or uncontrolled input ' +
547
'element for the lifetime of the component. More info: https://fb.me/react-controlled-components'
@@ -583,7 +583,7 @@ describe('ReactDOMInput', function() {
583
ReactDOM.render(<input type="radio" checked={true} />, container);
584
expect(console.error.argsForCall.length).toBe(1);
585
expect(console.error.argsForCall[0][0]).toContain(
586
- 'A component is changing a uncontrolled input of type radio to be controlled. ' +
586
+ 'A component is changing an uncontrolled input of type radio to be controlled. ' +
587
'Input elements should not switch from uncontrolled to controlled (or vice versa). ' +
588
'Decide between using a controlled or uncontrolled input ' +
589
'element for the lifetime of the component. More info: https://fb.me/react-controlled-components'