forked from p96170835/amis
需要把事件阻止掉
This commit is contained in:
parent
286f4836fa
commit
e42a4f5ab1
|
@ -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([]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue