From 5efb371d7b4990c0fa73a7ad66acdf0fe8064763 Mon Sep 17 00:00:00 2001 From: Mike Turley Date: Mon, 14 Feb 2022 14:12:29 -0500 Subject: [PATCH] fix(ValidatedPasswordInput): default to label from field schema (match ValidatedTextInput behavior) (#95) --- src/components/ValidatedTextInput/ValidatedPasswordInput.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ValidatedTextInput/ValidatedPasswordInput.tsx b/src/components/ValidatedTextInput/ValidatedPasswordInput.tsx index cc381ec..0baaf99 100644 --- a/src/components/ValidatedTextInput/ValidatedPasswordInput.tsx +++ b/src/components/ValidatedTextInput/ValidatedPasswordInput.tsx @@ -28,7 +28,7 @@ interface IValidatedPasswordInputProps export const ValidatedPasswordInput: React.FunctionComponent = ({ field, - label, + label = field.schema.describe().label, fieldId, isRequired, greenWhenValid = false,