Socket
Socket
Sign inDemoInstall

react-bootstrap-select-dropdown

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-bootstrap-select-dropdown - npm Package Compare versions

Comparing version 1.3.6 to 1.3.7

21

dist/index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc