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