react-dropdown-now
Advanced tools
Comparing version 3.1.0 to 3.1.1
@@ -48,2 +48,3 @@ "use strict"; | ||
onChange = _ref.onChange, | ||
onSelect = _ref.onSelect, | ||
baseClassName = _ref.baseClassName, | ||
@@ -112,2 +113,6 @@ controlClassName = _ref.controlClassName, | ||
var fireChangeEvent = function fireChangeEvent(newSelectedState, e) { | ||
if (onSelect) { | ||
onSelect(newSelectedState.option, e); | ||
} | ||
if (newSelectedState.id !== (0, _get["default"])(selected, 'id') && onChange) { | ||
@@ -114,0 +119,0 @@ onChange(newSelectedState.option, e); |
@@ -36,2 +36,3 @@ "use strict"; | ||
var originalOptions = _ref.options, | ||
onSelect = _ref.onSelect, | ||
matcher = _ref.matcher, | ||
@@ -54,2 +55,6 @@ value = _ref.value, | ||
var fireChangeEvent = function fireChangeEvent(newSelectedState, e) { | ||
if (onSelect) { | ||
onSelect(newSelectedState.option, e); | ||
} | ||
if (newSelectedState.id !== (0, _get["default"])(selected, 'id') && onChange) { | ||
@@ -56,0 +61,0 @@ onChange(newSelectedState.option, e); |
{ | ||
"name": "react-dropdown-now", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"description": "React dropdown component NOW", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -21,2 +21,3 @@ # react-dropdown-now | ||
onChange={(value) => console.log('change!', value)} | ||
onSelect={(value) => console.log('selected!', value)} // always fires once a selection happens even if there is no change | ||
onClose={(closedBySelection) => console.log('closedBySelection?:', closedBySelection)} | ||
@@ -23,0 +24,0 @@ onOpen={() => console.log('open!')} |
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
42582
742
145