react-select
Advanced tools
Comparing version 2.4.0 to 2.4.1
{ | ||
"name": "react-select", | ||
"version": "2.4.0", | ||
"version": "2.4.1", | ||
"description": "A Select control built with and for ReactJS", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -1022,7 +1022,9 @@ // @flow | ||
// close the menu if the user taps outside | ||
// we're checking on event.target here instead of event.currentTarget, because we want to assert information | ||
// on events on child elements, not the document (which we've attached this handler to). | ||
if ( | ||
this.controlRef && | ||
!this.controlRef.contains(event.currentTarget) && | ||
!this.controlRef.contains(event.target) && | ||
this.menuListRef && | ||
!this.menuListRef.contains(event.currentTarget) | ||
!this.menuListRef.contains(event.target) | ||
) { | ||
@@ -1038,3 +1040,2 @@ this.blurInput(); | ||
if (this.userIsDragging) return; | ||
this.onControlMouseDown(event); | ||
@@ -1041,0 +1042,0 @@ }; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1109919
22641