From 8693ea3bd4cb2daa87fae401210e3a3dc0c93dab Mon Sep 17 00:00:00 2001 From: liaoxuezhi Date: Fri, 5 Nov 2021 12:37:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20InputBox=20=E5=BD=93=20ui=20=E5=BA=93?= =?UTF-8?q?=E7=94=A8=E6=97=B6=20onClear=20=E5=A4=84=E7=90=86=E9=94=99?= =?UTF-8?q?=E8=AF=AF=20(#2854)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/InputBox.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/InputBox.tsx b/src/components/InputBox.tsx index 54761a6f6..ea98735b5 100644 --- a/src/components/InputBox.tsx +++ b/src/components/InputBox.tsx @@ -37,7 +37,7 @@ export class InputBox extends React.Component { clearValue(e: any) { e.preventDefault(); - const onClear = this.props.onChange; + const onClear = this.props.onClear; const onChange = this.props.onChange; onClear?.(e); onChange?.('');