Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

Commit

Permalink
v0.79.1 in www
Browse files Browse the repository at this point in the history
Reviewed By: gabelevi

Differential Revision: D9390004

fbshipit-source-id: f1bff3f8db0c964b1712c1af9e142e86735d0cb7
  • Loading branch information
panagosg7 authored and facebook-github-bot committed Aug 19, 2018
1 parent a6c9ffd commit 93a90a9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/component/base/DraftEditor.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,9 @@ class DraftEditor extends React.Component<DraftEditorProps, State> {
*/
_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
Expand Down
4 changes: 3 additions & 1 deletion src/component/contents/DraftEditorLeaf.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ class DraftEditorLeaf extends React.Component<Props> {

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 {
Expand Down

0 comments on commit 93a90a9

Please sign in to comment.