@fixefy/fixefy-ui-components 0.2.24 → 0.2.26

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,9 +165,6 @@ const FxAsyncDropdown = /*#__PURE__*/ _react.default.forwardRef((props)=>{
165
165
  if (!disabled) {
166
166
  fetch();
167
167
  }
168
- return ()=>{
169
- sessionStorage.removeItem(`dropdown-${query}`);
170
- };
171
168
  }, []);
172
169
  (0, _react.useEffect)(()=>{
173
170
  const storedData = sessionStorage.getItem(`dropdown-${query}`);
@@ -83,11 +83,6 @@ const FxStaticDropdown = /*#__PURE__*/ _react.default.forwardRef((props)=>{
83
83
  }, [
84
84
  query
85
85
  ]);
86
- (0, _react.useEffect)(()=>{
87
- return ()=>{
88
- sessionStorage.removeItem(`dropdown-${query}`);
89
- };
90
- }, []);
91
86
  const addToStoredDisplayed = (option)=>{
92
87
  const prevStored = sessionStorage.getItem(`dropdown-${query}`);
93
88
  let data = prevStored ? JSON.parse(prevStored) : {};
@@ -133,12 +133,7 @@ const InputWrapper = (0, _styles.styled)('div')(({ theme, hasValue, disabled })=
133
133
  };
134
134
  });
135
135
  const StyledListBox = (0, _styles.styled)('ul')(({ theme })=>({
136
- position: 'absolute',
137
- top: '100%',
138
- left: 0,
139
- width: '100%',
140
136
  margin: 0,
141
- marginTop: '1px',
142
137
  padding: 0,
143
138
  listStyle: 'none',
144
139
  backgroundColor: theme.palette.common.white,
@@ -149,8 +144,8 @@ const StyledListBox = (0, _styles.styled)('ul')(({ theme })=>({
149
144
  overflowX: 'hidden',
150
145
  paddingTop: 8,
151
146
  paddingBottom: 8,
152
- // maxWidth: 270,
153
- // minWidth: 270,
147
+ maxWidth: 270,
148
+ minWidth: 270,
154
149
  '&::-webkit-scrollbar': {
155
150
  width: '8px',
156
151
  backgroundColor: 'transparent'
@@ -178,7 +173,9 @@ const StyledListBox = (0, _styles.styled)('ul')(({ theme })=>({
178
173
  textOverflow: 'ellipsis',
179
174
  whiteSpace: 'nowrap',
180
175
  overflow: 'hidden',
181
- width: '100%'
176
+ width: '100%',
177
+ maxWidth: 270,
178
+ minWidth: 270
182
179
  },
183
180
  ['& li:hover']: {
184
181
  backgroundColor: '#F6F9FA'
package/package.json CHANGED
@@ -65,5 +65,5 @@
65
65
  "require": "./dist/index.js"
66
66
  }
67
67
  },
68
- "version": "0.2.24"
68
+ "version": "0.2.26"
69
69
  }