Skip to content

Commit ed95737

Browse files
committed
Grammar correction in ReactDOMInput.js warning
Changed "a uncontrolled input" to "an uncontrolled input".
1 parent 44f8463 commit ed95737

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: src/renderers/dom/client/wrappers/ReactDOMInput.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ var ReactDOMInput = {
177177
) {
178178
warning(
179179
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. ' +
181181
'Input elements should not switch from uncontrolled to controlled (or vice versa). ' +
182182
'Decide between using a controlled or uncontrolled input ' +
183183
'element for the lifetime of the component. More info: https://fb.me/react-controlled-components',

Diff for: src/renderers/dom/client/wrappers/__tests__/ReactDOMInput-test.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ describe('ReactDOMInput', function() {
499499
ReactDOM.render(<input type="text" value="controlled" />, container);
500500
expect(console.error.argsForCall.length).toBe(1);
501501
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. ' +
503503
'Input elements should not switch from uncontrolled to controlled (or vice versa). ' +
504504
'Decide between using a controlled or uncontrolled input ' +
505505
'element for the lifetime of the component. More info: https://fb.me/react-controlled-components'
@@ -541,7 +541,7 @@ describe('ReactDOMInput', function() {
541541
ReactDOM.render(<input type="checkbox" checked={true} />, container);
542542
expect(console.error.argsForCall.length).toBe(1);
543543
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. ' +
545545
'Input elements should not switch from uncontrolled to controlled (or vice versa). ' +
546546
'Decide between using a controlled or uncontrolled input ' +
547547
'element for the lifetime of the component. More info: https://fb.me/react-controlled-components'
@@ -583,7 +583,7 @@ describe('ReactDOMInput', function() {
583583
ReactDOM.render(<input type="radio" checked={true} />, container);
584584
expect(console.error.argsForCall.length).toBe(1);
585585
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. ' +
587587
'Input elements should not switch from uncontrolled to controlled (or vice versa). ' +
588588
'Decide between using a controlled or uncontrolled input ' +
589589
'element for the lifetime of the component. More info: https://fb.me/react-controlled-components'

0 commit comments

Comments
 (0)