@fixefy/fixefy-ui-components 0.3.52 → 0.3.54

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.
@@ -184,6 +184,18 @@ const FxAsyncDropdown = (props)=>{
184
184
  } else {
185
185
  setDisplayed(items[0]);
186
186
  }
187
+ } else {
188
+ if (multiple) {
189
+ setDisplayed([]);
190
+ } else {
191
+ setDisplayed('');
192
+ }
193
+ }
194
+ } else {
195
+ if (multiple) {
196
+ setDisplayed([]);
197
+ } else {
198
+ setDisplayed('');
187
199
  }
188
200
  }
189
201
  }, [
@@ -231,7 +243,6 @@ const FxAsyncDropdown = (props)=>{
231
243
  ]);
232
244
  (0, _react.useEffect)(()=>{
233
245
  setFetchedProps(props);
234
- setDisplayed(multiple ? [] : '');
235
246
  }, []);
236
247
  const handleSearch = (e)=>{
237
248
  setSearchValue(e.target.value);
@@ -348,10 +359,6 @@ const FxAsyncDropdown = (props)=>{
348
359
  }
349
360
  }
350
361
  };
351
- // const loadMore = () => {
352
- // setPage( ( prevPage ) => prevPage + 1 )
353
- // setPrevPage( ( prevPage ) => prevPage + 1 )
354
- // }
355
362
  const getCurrentValues = ()=>{
356
363
  if (multiple) {
357
364
  return getDisplayedValuesMultiple();
@@ -12,7 +12,6 @@ export interface StylesOptions {
12
12
  export type AsyncDropdownPropsType = {
13
13
  initialValue?: Option | any;
14
14
  styles?: StylesOptions;
15
- method_name: string;
16
15
  multiple?: boolean;
17
16
  name: any;
18
17
  variables: any;
package/package.json CHANGED
@@ -70,5 +70,5 @@
70
70
  "require": "./dist/index.js"
71
71
  }
72
72
  },
73
- "version": "0.3.52"
73
+ "version": "0.3.54"
74
74
  }