diff --git a/src/fieldset/index.jsx b/src/fieldset/index.jsx index 3b99cf70..33dac4ee 100644 --- a/src/fieldset/index.jsx +++ b/src/fieldset/index.jsx @@ -224,10 +224,12 @@ function Field({ hint = { hint }; } + const snippetProps = props.formatters?.[name]?.renderContext ?? {}; + return {`fields.${name}.label`} : label} - hint={isUndefined(hint) ? {`fields.${name}.hint`} : hint} - error={error && {`errors.${name}.${error}`}} + label={isUndefined(label) ? {`fields.${name}.label`} : label} + hint={isUndefined(hint) ? {`fields.${name}.hint`} : hint} + error={error && {`errors.${name}.${error}`}} value={fieldValue} onChange={onFieldChange} name={prefix ? `${prefix}-${name}` : name}