react-bootstrap-select-dropdown
Advanced tools
Comparing version 1.3.5 to 1.3.6
@@ -110,2 +110,3 @@ "use strict"; | ||
var btnPlaceHolder = placeholder && placeholder !== null ? placeholder : 'No option selected'; | ||
var prevOptions = (0, _react.useRef)(); | ||
var initialState = { | ||
@@ -136,3 +137,6 @@ value: _toConsumableArray(options.filter(function (e) { | ||
(0, _react.useEffect)(function () { | ||
setOptionsList(options); | ||
if (JSON.stringify(prevOptions.current) !== JSON.stringify(options)) { | ||
prevOptions.current = options; | ||
setOptionsList(options); | ||
} | ||
}, [options]); | ||
@@ -139,0 +143,0 @@ (0, _react.useEffect)(function () { |
@@ -0,1 +1,5 @@ | ||
# v1.3.6 | ||
- Bug fixes: Update options state only if options are not same as previous. | ||
# v1.3.5 | ||
@@ -2,0 +6,0 @@ |
{ | ||
"name": "react-bootstrap-select-dropdown", | ||
"version": "1.3.5", | ||
"version": "1.3.6", | ||
"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
41373
410