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:
Josh Duck
2013-10-22 14:09:33 -07:00
committed by Paul O’Shannessy
parent eeefe95958
commit 0d2d3360d0
-2
View File
@@ -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