react-bootstrap-select-dropdown
Advanced tools
Comparing version 1.3.1 to 1.3.2
@@ -210,10 +210,10 @@ "use strict"; | ||
if (index === idx) { | ||
if (selectedValue.indexOf(option.value) === -1) { | ||
if (selectedKey.indexOf(option.labelKey) === -1) { | ||
selectedOptions.currentValue !== undefined ? selectedOptions.currentValue.push(option.value) : selectedOptions.currentValue = [option.value]; | ||
selectedOptions.currentKey !== undefined ? selectedOptions.currentKey.push(option.value) : selectedOptions.currentKey = [option.value]; | ||
selectedOptions.currentKey !== undefined ? selectedOptions.currentKey.push(option.labelKey) : selectedOptions.currentKey = [option.labelKey]; | ||
} | ||
} else { | ||
if (selectedValue.indexOf(option.value) !== -1) { | ||
if (selectedKey.indexOf(option.labelKey) !== -1) { | ||
selectedOptions.currentValue !== undefined ? selectedOptions.currentValue.push(option.value) : selectedOptions.currentValue = [option.value]; | ||
selectedOptions.currentKey !== undefined ? selectedOptions.currentKey.push(option.value) : selectedOptions.currentKey = [option.value]; | ||
selectedOptions.currentKey !== undefined ? selectedOptions.currentKey.push(option.labelKey) : selectedOptions.currentKey = [option.labelKey]; | ||
} | ||
@@ -220,0 +220,0 @@ } |
{ | ||
"name": "react-bootstrap-select-dropdown", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
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
38843