Commit 893fba8 1 parent 44ad2b5 commit 893fba8 Copy full SHA for 893fba8
File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ var EventConstants = require('EventConstants');
22
22
var EventPluginHub = require ( 'EventPluginHub' ) ;
23
23
var EventPropagators = require ( 'EventPropagators' ) ;
24
24
var ExecutionEnvironment = require ( 'ExecutionEnvironment' ) ;
25
+ var ReactInputSelection = require ( 'ReactInputSelection' ) ;
25
26
var SyntheticEvent = require ( 'SyntheticEvent' ) ;
26
27
27
28
var getActiveElement = require ( 'getActiveElement' ) ;
@@ -65,7 +66,8 @@ var mouseDown = false;
65
66
* @param {object }
66
67
*/
67
68
function getSelection ( node ) {
68
- if ( 'selectionStart' in node ) {
69
+ if ( 'selectionStart' in node &&
70
+ ReactInputSelection . hasSelectionCapabilities ( node ) ) {
69
71
return {
70
72
start : node . selectionStart ,
71
73
end : node . selectionEnd
You can’t perform that action at this time.
0 commit comments