Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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.4 to 1.3.5

16

dist/index.js

@@ -71,7 +71,7 @@ "use strict";

(0, _react.useEffect)(function () {
if (defaultOptions.length) {
options.forEach(function (optItem) {
optItem.isSelected = defaultOptions.indexOf(optItem.labelKey) !== -1 ? true : false;
});
}, [defaultOptions]);
}

@@ -137,3 +137,13 @@ var selectEl = _react["default"].useRef();

setOptionsList(options);
}, [options]); // Hide menu items
}, [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

@@ -140,0 +150,0 @@ var hideMenu = function hideMenu() {

@@ -0,1 +1,5 @@

# v1.3.5
- Bug fixes: Update selected option to none if required to set as blank using set "defaultOptions" to [].
# v1.3.4

@@ -2,0 +6,0 @@

2

package.json
{
"name": "react-bootstrap-select-dropdown",
"version": "1.3.4",
"version": "1.3.5",
"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