mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 20:09:08 +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) {
|
clearValue(e: any) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
const onClear = this.props.onChange;
|
const onClear = this.props.onClear;
|
||||||
const onChange = this.props.onChange;
|
const onChange = this.props.onChange;
|
||||||
onClear?.(e);
|
onClear?.(e);
|
||||||
onChange?.('');
|
onChange?.('');
|
||||||
|
Loading…
Reference in New Issue
Block a user