mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 11:58:10 +08:00
fix: InputBox 当 ui 库用时 onClear 处理错误 (#2854)
This commit is contained in:
parent
4473fcab3b
commit
8693ea3bd4
@ -37,7 +37,7 @@ export class InputBox extends React.Component<InputBoxProps, InputBoxState> {
|
||||
clearValue(e: any) {
|
||||
e.preventDefault();
|
||||
|
||||
const onClear = this.props.onChange;
|
||||
const onClear = this.props.onClear;
|
||||
const onChange = this.props.onChange;
|
||||
onClear?.(e);
|
||||
onChange?.('');
|
||||
|
Loading…
Reference in New Issue
Block a user