From 533b66a60d8d42e55c76365d73d6627fce100982 Mon Sep 17 00:00:00 2001 From: halvves Date: Mon, 26 Aug 2019 21:49:36 -0700 Subject: [PATCH 1/3] prevent firefox marking required textareas invalid Bug was caused by an IE10/IE11 bugfix dealing with the placeholder attribute and textContent. Solved by avoiding the IE bugfix when textContent was empty. Closes #16402 --- .../components/fixtures/textareas/index.js | 38 +++++++++++++++++++ .../src/__tests__/ReactDOMTextarea-test.js | 27 +++++++++++++ .../react-dom/src/client/ReactDOMTextarea.js | 4 +- 3 files changed, 68 insertions(+), 1 deletion(-) diff --git a/fixtures/dom/src/components/fixtures/textareas/index.js b/fixtures/dom/src/components/fixtures/textareas/index.js index 54173cb323c22..dcb92262a12c0 100644 --- a/fixtures/dom/src/components/fixtures/textareas/index.js +++ b/fixtures/dom/src/components/fixtures/textareas/index.js @@ -1,3 +1,4 @@ +import Fixture from '../../Fixture'; import FixtureSet from '../../FixtureSet'; import TestCase from '../../TestCase'; @@ -39,6 +40,43 @@ export default class TextAreaFixtures extends React.Component {