mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 10:38:16 +08:00
解决在B事件里操作A文本框的resetValue或者clearValue导致失焦的问题,可能引发多次失去焦点事件 (#11236)
This commit is contained in:
parent
eafca8c3c5
commit
b65ee7d57b
@ -335,7 +335,7 @@ export default class TextControl extends React.PureComponent<
|
||||
inputValue: pristineVal
|
||||
},
|
||||
() => {
|
||||
this.focus();
|
||||
//this.focus();
|
||||
this.loadAutoComplete();
|
||||
}
|
||||
);
|
||||
@ -373,7 +373,7 @@ export default class TextControl extends React.PureComponent<
|
||||
inputValue: resetValue
|
||||
},
|
||||
() => {
|
||||
this.focus();
|
||||
//this.focus();
|
||||
this.loadAutoComplete();
|
||||
}
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user