diff --git a/src/component/base/DraftEditor.react.js b/src/component/base/DraftEditor.react.js index 06ec2bcd43..b3cb1d86ea 100644 --- a/src/component/base/DraftEditor.react.js +++ b/src/component/base/DraftEditor.react.js @@ -261,7 +261,9 @@ class DraftEditor extends React.Component { */ _buildHandler(eventName: string): Function { const flushControlled: (fn: Function) => void = - // $FlowFixMe flushControlled is an unstable feature, so not Flow typed + /* $FlowFixMe(>=0.79.1 site=www) This comment suppresses an error found + * when Flow v0.79 was deployed. To see the error delete this comment and + * run Flow. */ ReactDOM.unstable_flushControlled; // Wrap event handlers in `flushControlled`. In sync mode, this is // effetively a no-op. In async mode, this ensures all updates scheduled diff --git a/src/component/contents/DraftEditorLeaf.react.js b/src/component/contents/DraftEditorLeaf.react.js index fb7f6c2ac3..cec8495421 100644 --- a/src/component/contents/DraftEditorLeaf.react.js +++ b/src/component/contents/DraftEditorLeaf.react.js @@ -103,7 +103,9 @@ class DraftEditorLeaf extends React.Component { if (child.nodeType === Node.TEXT_NODE) { targetNode = child; - // $FlowFixMe child may also be an Element, not just Node + /* $FlowFixMe(>=0.79.1 site=www) This comment suppresses an error found + * when Flow v0.79 was deployed. To see the error delete this comment and + * run Flow. */ } else if (child.tagName === 'BR') { targetNode = node; } else {