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

Commit a99f51e

Browse files
samwgoldmanfacebook-github-bot
authored andcommitted
Upgrade to Flow v0.68.0
Summary: bypass-lint ignore-signed-source Reviewed By: nmote Differential Revision: D7295893 fbshipit-source-id: 73879269f64034140bcfcec869385256dc7b78d5
1 parent 102701c commit a99f51e

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

src/component/base/DraftEditor.react.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,9 @@ class DraftEditor extends React.Component<DraftEditorProps, State> {
335335

336336
// The aria-expanded and aria-haspopup properties should only be rendered
337337
// for a combobox.
338+
/* $FlowFixMe(>=0.68.0 site=www,mobile) This comment suppresses an error
339+
* found when Flow v0.68 was deployed. To see the error delete this comment
340+
* and run Flow. */
338341
const ariaRole = this.props.role || 'textbox';
339342
const ariaExpanded =
340343
ariaRole === 'combobox' ? !!this.props.ariaExpanded : null;

src/component/handlers/drag/DraftEditorDragHandler.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ function getSelectionForEvent(
3636
let node: ?Node = null;
3737
let offset: ?number = null;
3838

39+
/* $FlowFixMe(>=0.68.0 site=www,mobile) This comment suppresses an error
40+
* found when Flow v0.68 was deployed. To see the error delete this comment
41+
* and run Flow. */
3942
if (typeof document.caretRangeFromPoint === 'function') {
4043
var dropRange = document.caretRangeFromPoint(event.x, event.y);
4144
node = dropRange.startContainer;

src/model/encoding/convertFromHTMLToContentBlocks2.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,9 @@ class ContentBlocksBuilder {
664664
let config = blockConfigs[i];
665665
text += config.text;
666666
characterList = characterList.concat(config.characterList);
667+
/* $FlowFixMe(>=0.68.0 site=www,mobile) This comment suppresses an error
668+
* found when Flow v0.68 was deployed. To see the error delete this
669+
* comment and run Flow. */
667670
if (text !== '' && config.blockType !== 'unstyled') {
668671
text += '\n';
669672
characterList = characterList.push(characterList.last());

0 commit comments

Comments
 (0)