mirror of https://gitee.com/answerdev/answer.git
fix: form check id
This commit is contained in:
parent
7ed41c636c
commit
1aad5769c7
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue