Sync Input component from feat/attachments branch (#7782)

This commit is contained in:
NFish
2024-08-29 11:23:16 +08:00
committed by GitHub
parent 62f4801523
commit ad30668eb6
6 changed files with 78 additions and 38 deletions

View File

@@ -79,7 +79,7 @@ export const FieldInfo: FC<IFieldInfoProps> = ({
/>
: <Input
className={s.input}
onChange={onUpdate}
onChange={e => onUpdate?.(e.target.value)}
value={value}
defaultValue={defaultValue}
placeholder={`${t('datasetDocuments.metadata.placeholder.add')}${label}`}