@fixefy/fixefy-ui-components 0.2.29 → 0.2.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -233,9 +233,7 @@ const FxAsyncDropdown = /*#__PURE__*/ _react.default.forwardRef((props)=>{
233
233
  if (storedDisplayed) {
234
234
  storedDisplayed = JSON.parse(storedDisplayed);
235
235
  if (multiple) {
236
- const newDisplayed = storedDisplayed[name].filter((opt)=>{
237
- opt[title_path] !== option[title_path];
238
- });
236
+ const newDisplayed = storedDisplayed[name].filter((opt)=>opt[title_path] !== option[title_path]);
239
237
  storedDisplayed[name] = newDisplayed;
240
238
  } else {
241
239
  delete storedDisplayed[name];
@@ -66,6 +66,11 @@ const FxModalWithButton = ({ btnValue, modalData, onClick })=>{
66
66
  setIsOpen(false);
67
67
  setAnchorEl(null);
68
68
  };
69
+ (0, _react.useEffect)(()=>{
70
+ setIsOpen(false);
71
+ }, [
72
+ btnValue
73
+ ]);
69
74
  return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Box, {
70
75
  children: [
71
76
  /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Button, {
package/package.json CHANGED
@@ -65,5 +65,5 @@
65
65
  "require": "./dist/index.js"
66
66
  }
67
67
  },
68
- "version": "0.2.29"
68
+ "version": "0.2.31"
69
69
  }