mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
Don't reset mouseDown in focus handlers
Focus fires after mouse down on initial click, so we lost the flag when the user initially began dragging on the input.
This commit is contained in:
1 parent
ce612904ef
commit
c9d20e56d3
1 file changed
-2
@@ -182,14 +182,12 @@ var SelectEventPlugin = {
|
||||
activeElement = topLevelTarget;
|
||||
activeElementID = topLevelTargetID;
|
||||
lastSelection = null;
|
||||
mouseDown = false;
|
||||
}
|
||||
break;
|
||||
case topLevelTypes.topBlur:
|
||||
activeElement = null;
|
||||
activeElementID = null;
|
||||
lastSelection = null;
|
||||
mouseDown = false;
|
||||
break;
|
||||
|
||||
// Don't fire the event while the user is dragging. This matches the
|
||||
|
||||
Reference in new issue
Block a user