fix: form check id

This commit is contained in:
shuai 2023-08-22 14:20:04 +08:00
parent 7ed41c636c
commit 1aad5769c7
1 changed files with 2 additions and 1 deletions

View File

@ -38,6 +38,7 @@ const Index: FC<Props> = ({
},
};
if (typeof onChange === 'function') {
console.log('fieldName', fieldName, enumValues);
onChange(state);
}
};
@ -50,7 +51,7 @@ const Index: FC<Props> = ({
inline
type={type}
name={fieldName}
id={`form-${String(item)}`}
id={`${fieldName}-${enumNames?.[index]}`}
label={enumNames?.[index]}
checked={fieldObject?.value?.[index] || false}
feedback={fieldObject?.errorMsg}