mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +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:
committed by
Paul O’Shannessy
parent
eeefe95958
commit
0d2d3360d0
@@ -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