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

Commit

Permalink
Upgrade to Flow v0.68.0
Browse files Browse the repository at this point in the history
Summary:
bypass-lint
ignore-signed-source

Reviewed By: nmote

Differential Revision: D7295893

fbshipit-source-id: 73879269f64034140bcfcec869385256dc7b78d5
  • Loading branch information
samwgoldman authored and facebook-github-bot committed Mar 16, 2018
1 parent 102701c commit a99f51e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/component/base/DraftEditor.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,9 @@ class DraftEditor extends React.Component<DraftEditorProps, State> {

// The aria-expanded and aria-haspopup properties should only be rendered
// for a combobox.
/* $FlowFixMe(>=0.68.0 site=www,mobile) This comment suppresses an error
* found when Flow v0.68 was deployed. To see the error delete this comment
* and run Flow. */
const ariaRole = this.props.role || 'textbox';
const ariaExpanded =
ariaRole === 'combobox' ? !!this.props.ariaExpanded : null;
Expand Down
3 changes: 3 additions & 0 deletions src/component/handlers/drag/DraftEditorDragHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ function getSelectionForEvent(
let node: ?Node = null;
let offset: ?number = null;

/* $FlowFixMe(>=0.68.0 site=www,mobile) This comment suppresses an error
* found when Flow v0.68 was deployed. To see the error delete this comment
* and run Flow. */
if (typeof document.caretRangeFromPoint === 'function') {
var dropRange = document.caretRangeFromPoint(event.x, event.y);
node = dropRange.startContainer;
Expand Down
3 changes: 3 additions & 0 deletions src/model/encoding/convertFromHTMLToContentBlocks2.js
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,9 @@ class ContentBlocksBuilder {
let config = blockConfigs[i];
text += config.text;
characterList = characterList.concat(config.characterList);
/* $FlowFixMe(>=0.68.0 site=www,mobile) This comment suppresses an error
* found when Flow v0.68 was deployed. To see the error delete this
* comment and run Flow. */
if (text !== '' && config.blockType !== 'unstyled') {
text += '\n';
characterList = characterList.push(characterList.last());
Expand Down

0 comments on commit a99f51e

Please sign in to comment.