x-ui-design 0.6.75 → 0.6.77

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.esm.js CHANGED
@@ -1094,7 +1094,7 @@ const FormItem$1 = ({
1094
1094
  }, [name, fieldRef.current]);
1095
1095
  useEffect(() => () => registerField(name, undefined, true), [name]);
1096
1096
  useEffect(() => {
1097
- if (initialValue) {
1097
+ if (initialValue && getFieldValue(name) === undefined) {
1098
1098
  setFieldValue(name, initialValue);
1099
1099
  }
1100
1100
  }, []);
@@ -3994,7 +3994,8 @@ const Select = ({
3994
3994
  handleSelect(e, props.value, {
3995
3995
  children,
3996
3996
  className,
3997
- ...props
3997
+ ...props,
3998
+ key: `${index}`
3998
3999
  });
3999
4000
  },
4000
4001
  "data-value": props.value