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

Commit

Permalink
Cautious range removal on blur without feature flag
Browse files Browse the repository at this point in the history
Summary: Fixes #1188. Closes #1190.

Reviewed By: flarnie

Differential Revision: D5614905

fbshipit-source-id: 5d18d96e279b360cfa47b9156fc85e93424d33b5
  • Loading branch information
sophiebits authored and facebook-github-bot committed Aug 11, 2017
1 parent e1d36af commit 96688e1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/component/handlers/edit/editOnBlur.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

import type DraftEditor from 'DraftEditor.react';

const DraftFeatureFlags = require('DraftFeatureFlags');
const EditorState = require('EditorState');

const containsNode = require('containsNode');
Expand All @@ -33,7 +32,6 @@ function editOnBlur(editor: DraftEditor, e: SyntheticEvent): void {
const selection = global.getSelection();
const editorNode = editor.refs.editor;
if (
!DraftFeatureFlags.draft_cautious_range_removal_on_blur ||
selection.rangeCount === 1 &&
containsNode(editorNode, selection.anchorNode) &&
containsNode(editorNode, selection.focusNode)
Expand Down
1 change: 0 additions & 1 deletion src/component/utils/DraftFeatureFlags-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

var DraftFeatureFlags = {
draft_accept_selection_after_refocus: false,
draft_cautious_range_removal_on_blur: false,
draft_killswitch_allow_nontextnodes: false,
draft_segmented_entities_behavior: false,
};
Expand Down

0 comments on commit 96688e1

Please sign in to comment.