From 14c4c215e6e96dae4549260823ad99d6761b4d9b Mon Sep 17 00:00:00 2001 From: Evan Morikawa Date: Wed, 20 May 2015 10:22:03 -0700 Subject: [PATCH] Fixes T1344: composer links fixed --- internal_packages/composer/lib/contenteditable-component.cjsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal_packages/composer/lib/contenteditable-component.cjsx b/internal_packages/composer/lib/contenteditable-component.cjsx index dfbb9ebb9..210021af4 100644 --- a/internal_packages/composer/lib/contenteditable-component.cjsx +++ b/internal_packages/composer/lib/contenteditable-component.cjsx @@ -346,6 +346,7 @@ class ContenteditableComponent extends React.Component selection = document.getSelection() return if @_checkSameSelection(selection) return unless selection.anchorNode? and selection.focusNode? + return unless @_selectionInScope(selection) @_previousSelection = @_selection @@ -766,7 +767,6 @@ class ContenteditableComponent extends React.Component linkToModify: null editAreaWidth: editAreaWidth - # See selection API: http://www.w3.org/TR/selection-api/ _selectionInScope: (selection) => return false if not selection? editable = @_editableNode()