react-bootstrap-select-dropdown
Advanced tools
Comparing version 1.3.6 to 1.3.7
@@ -137,16 +137,15 @@ "use strict"; | ||
if (JSON.stringify(prevOptions.current) !== JSON.stringify(options)) { | ||
if (defaultOptions.length) { | ||
options.forEach(function (optItem) { | ||
optItem.isSelected = defaultOptions.indexOf(optItem.labelKey) !== -1 ? true : false; | ||
}); | ||
} else { | ||
setSelectedValue([]); | ||
setSelectedKey([]); | ||
} | ||
prevOptions.current = options; | ||
setOptionsList(options); | ||
} | ||
}, [options]); | ||
(0, _react.useEffect)(function () { | ||
if (defaultOptions.length) { | ||
options.forEach(function (optItem) { | ||
optItem.isSelected = defaultOptions.indexOf(optItem.labelKey) !== -1 ? true : false; | ||
}); | ||
} else { | ||
setSelectedValue([]); | ||
setSelectedKey([]); | ||
} | ||
}, [defaultOptions]); // Hide menu items | ||
}, [options]); // Hide menu items | ||
@@ -153,0 +152,0 @@ var hideMenu = function hideMenu() { |
@@ -0,1 +1,5 @@ | ||
# v1.3.7 | ||
- Bug fixes: Remove "defaultOptions" update dependency. | ||
# v1.3.6 | ||
@@ -2,0 +6,0 @@ |
{ | ||
"name": "react-bootstrap-select-dropdown", | ||
"version": "1.3.6", | ||
"version": "1.3.7", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
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
41399
408