Skip to content

Commit 0d2d336

Browse files
joshduckzpao
authored andcommitted
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.
1 parent eeefe95 commit 0d2d336

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/eventPlugins/SelectEventPlugin.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,14 +182,12 @@ var SelectEventPlugin = {
182182
activeElement = topLevelTarget;
183183
activeElementID = topLevelTargetID;
184184
lastSelection = null;
185-
mouseDown = false;
186185
}
187186
break;
188187
case topLevelTypes.topBlur:
189188
activeElement = null;
190189
activeElementID = null;
191190
lastSelection = null;
192-
mouseDown = false;
193191
break;
194192

195193
// Don't fire the event while the user is dragging. This matches the

0 commit comments

Comments
 (0)