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} />