@fixefy/fixefy-ui-components 0.2.22 → 0.2.24

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.
@@ -165,6 +165,9 @@ const FxAsyncDropdown = /*#__PURE__*/ _react.default.forwardRef((props)=>{
165
165
  if (!disabled) {
166
166
  fetch();
167
167
  }
168
+ return ()=>{
169
+ sessionStorage.removeItem(`dropdown-${query}`);
170
+ };
168
171
  }, []);
169
172
  (0, _react.useEffect)(()=>{
170
173
  const storedData = sessionStorage.getItem(`dropdown-${query}`);
@@ -81,9 +81,13 @@ const FxStaticDropdown = /*#__PURE__*/ _react.default.forwardRef((props)=>{
81
81
  }
82
82
  }
83
83
  }, [
84
- query,
85
- name
84
+ query
86
85
  ]);
86
+ (0, _react.useEffect)(()=>{
87
+ return ()=>{
88
+ sessionStorage.removeItem(`dropdown-${query}`);
89
+ };
90
+ }, []);
87
91
  const addToStoredDisplayed = (option)=>{
88
92
  const prevStored = sessionStorage.getItem(`dropdown-${query}`);
89
93
  let data = prevStored ? JSON.parse(prevStored) : {};
package/package.json CHANGED
@@ -65,5 +65,5 @@
65
65
  "require": "./dist/index.js"
66
66
  }
67
67
  },
68
- "version": "0.2.22"
68
+ "version": "0.2.24"
69
69
  }