需要把事件阻止掉

This commit is contained in:
2betop 2020-05-28 13:37:05 +08:00
parent 286f4836fa
commit e42a4f5ab1
1 changed files with 2 additions and 1 deletions

View File

@ -34,7 +34,8 @@ export class ResultBox extends React.Component<ResultBoxProps> {
};
@autobind
clearValue() {
clearValue(e: React.MouseEvent<any>) {
e.preventDefault();
const onResultChange = this.props.onResultChange;
onResultChange && onResultChange([]);
}