diff --git a/packages/react-dom/src/__tests__/ReactDOMTextarea-test.js b/packages/react-dom/src/__tests__/ReactDOMTextarea-test.js
index ac40d1e230b7d..92d1142f5b186 100644
--- a/packages/react-dom/src/__tests__/ReactDOMTextarea-test.js
+++ b/packages/react-dom/src/__tests__/ReactDOMTextarea-test.js
@@ -19,6 +19,8 @@ describe('ReactDOMTextarea', () => {
let renderTextarea;
+ const ReactFeatureFlags = require('shared/ReactFeatureFlags');
+
beforeEach(() => {
jest.resetModules();
@@ -287,23 +289,58 @@ describe('ReactDOMTextarea', () => {
}
});
- it('should treat children like `defaultValue`', () => {
- const container = document.createElement('div');
- let stub = ;
- let node;
+ if (ReactFeatureFlags.disableTextareaChildren) {
+ it('should ignore children content', () => {
+ const container = document.createElement('div');
+ let stub = ;
+ let node;
- expect(() => {
- node = renderTextarea(stub, container);
- }).toErrorDev(
- 'Use the `defaultValue` or `value` props instead of setting children on