@rolster/react-components 18.21.6 → 18.21.7

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.
package/dist/es/index.js CHANGED
@@ -2434,7 +2434,9 @@ function useListController(props) {
2434
2434
  element && setFormValue(element);
2435
2435
  }
2436
2436
  else {
2437
- automatic && setFormValue(collection.value[0], true);
2437
+ automatic
2438
+ ? setFormValue(collection.value[0], true)
2439
+ : refreshState({ ...state, value: '' });
2438
2440
  }
2439
2441
  }
2440
2442
  changeValueInternal.current = false;