Merge pull request #24041 from astronouth7303/patch-1

redux-form: Add missing label to WrappedFieldProps
This commit is contained in:
Armando Aguirre
2018-03-08 16:42:09 -08:00
committed by GitHub
2 changed files with 2 additions and 0 deletions

View File

@@ -72,6 +72,7 @@ export class Field<P = GenericFieldHTMLAttributes | BaseFieldProps> extends Comp
export interface WrappedFieldProps {
input: WrappedFieldInputProps;
meta: WrappedFieldMetaProps;
label?: string;
}
export interface WrappedFieldInputProps extends CommonFieldInputProps {

View File

@@ -109,6 +109,7 @@ interface MyFieldCustomProps {
type MyFieldProps = MyFieldCustomProps & WrappedFieldProps;
const MyField: React.StatelessComponent<MyFieldProps> = ({
children,
label,
input,
meta,
foo