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-29 10:16:04 -07:00
committed by Paul O’Shannessy
parent ce612904ef
commit c9d20e56d3
-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