@fixefy/fixefy-ui-components 0.3.36 → 0.3.38

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.
@@ -57,10 +57,12 @@ const FxGeneralModal = ({ buttonComponent, modalComponent, onClick })=>{
57
57
  const [AnchorEl, setAnchorEl] = (0, _react.useState)(null);
58
58
  const handleClick = (e)=>{
59
59
  if (onClick) {
60
+ e.stopPropagation();
60
61
  onClick();
61
62
  setIsOpen((prev)=>!prev);
62
63
  setAnchorEl(e.currentTarget);
63
64
  } else {
65
+ e.stopPropagation();
64
66
  setIsOpen((prev)=>!prev);
65
67
  setAnchorEl(e.currentTarget);
66
68
  }
@@ -86,7 +86,7 @@ const FxStaticDropdown = /*#__PURE__*/ _react.default.forwardRef((props)=>{
86
86
  const addToStoredDisplayed = (option)=>{
87
87
  const prevStored = sessionStorage.getItem(`dropdown-${query}-${name}`);
88
88
  let data = prevStored ? JSON.parse(prevStored) : {};
89
- if (data) {
89
+ if (data === null || data === void 0 ? void 0 : data.length) {
90
90
  if (multiple) {
91
91
  data = [
92
92
  ...data,
@@ -183,13 +183,13 @@ const FxStaticDropdown = /*#__PURE__*/ _react.default.forwardRef((props)=>{
183
183
  case 'text':
184
184
  default:
185
185
  {
186
- return data.map((option)=>{
186
+ return data.map((option, i)=>{
187
187
  return /*#__PURE__*/ (0, _jsxruntime.jsx)("li", {
188
188
  onClick: ()=>{
189
189
  handleOptionClick(option);
190
190
  },
191
191
  children: getSingleOptionFromListOrDisplayed(option, 'list')
192
- }, option._id);
192
+ }, i);
193
193
  });
194
194
  }
195
195
  }
package/package.json CHANGED
@@ -67,5 +67,5 @@
67
67
  "require": "./dist/index.js"
68
68
  }
69
69
  },
70
- "version": "0.3.36"
70
+ "version": "0.3.38"
71
71
  }