From 310aa43f1647fb28e4944f293abd92968c1129f0 Mon Sep 17 00:00:00 2001 From: Erik Jan de Wit Date: Mon, 19 Jun 2023 08:35:56 +0200 Subject: [PATCH] remove icon label from text input (#21025) --- js/libs/ui-shared/src/controls/TextControl.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/libs/ui-shared/src/controls/TextControl.tsx b/js/libs/ui-shared/src/controls/TextControl.tsx index cbb571fe98..16752f78c0 100644 --- a/js/libs/ui-shared/src/controls/TextControl.tsx +++ b/js/libs/ui-shared/src/controls/TextControl.tsx @@ -26,6 +26,7 @@ export const TextControl = < >( props: TextControlProps ) => { + const { labelIcon, ...rest } = props; const required = !!props.rules?.required; const defaultValue = props.defaultValue ?? ("" as PathValue); @@ -38,7 +39,7 @@ export const TextControl = < @@ -50,7 +51,7 @@ export const TextControl = < fieldState.error ? ValidatedOptions.error : ValidatedOptions.default } isDisabled={props.isDisabled} - {...props} + {...rest} {...field} />