aport-tools 4.4.16 → 4.4.17

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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! aport-tools v4.4.16 | ISC */
1
+ /*! aport-tools v4.4.17 | ISC */
2
2
  'use strict';
3
3
 
4
4
  var React = require('react');
@@ -758,7 +758,7 @@ var InputList = function InputList(_a) {
758
758
  var _k = React.useState(false),
759
759
  isDropdownVisible = _k[0],
760
760
  setIsDropdownVisible = _k[1];
761
- var selectedOptions = formValues[name] || (multi ? [] : null);
761
+ var selectedOptions = firstValue || formValues[name] || (multi ? [] : null);
762
762
  var sortedOptions = React.useMemo(function () {
763
763
  return sortBy ? __spreadArray([], options, true).sort(function (a, b) {
764
764
  return a[sortBy] > b[sortBy] ? 1 : -1;
@@ -776,7 +776,7 @@ var InputList = function InputList(_a) {
776
776
  setInternalValue(firstValue);
777
777
  setFormValue(name, firstValue);
778
778
  } else {
779
- setInternalValue(selectedValue || "");
779
+ setInternalValue(selectedValue || (multi ? [] : null));
780
780
  }
781
781
  }, [firstValue, formValues[name]]);
782
782
  /**