diff --git a/src/components/TextField/TextField.tsx b/src/components/TextField/TextField.tsx index 790b7439b..72086a313 100644 --- a/src/components/TextField/TextField.tsx +++ b/src/components/TextField/TextField.tsx @@ -94,7 +94,7 @@ export const TextFieldRender = ( onKeyPressCapture, onKeyUp, onKeyUpCapture, - + onClear, ...otherProps } = usePropsHandler(COMPONENT_NAME, props, textFieldRef); @@ -364,7 +364,7 @@ export const TextFieldRender = ( type="button" disabled={disabled} tabIndex={-1} - onClick={handleClear} + onClick={onClear || handleClear} className={cnTextField('ClearButton')} > { }); return ( - - <> - Телефон - - -