解决在B事件里操作A文本框的resetValue或者clearValue导致失焦的问题,可能引发多次失去焦点事件 (#11236)

This commit is contained in:
kzl 2024-11-22 09:52:36 +08:00 committed by GitHub
parent eafca8c3c5
commit b65ee7d57b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -335,7 +335,7 @@ export default class TextControl extends React.PureComponent<
inputValue: pristineVal inputValue: pristineVal
}, },
() => { () => {
this.focus(); //this.focus();
this.loadAutoComplete(); this.loadAutoComplete();
} }
); );
@ -373,7 +373,7 @@ export default class TextControl extends React.PureComponent<
inputValue: resetValue inputValue: resetValue
}, },
() => { () => {
this.focus(); //this.focus();
this.loadAutoComplete(); this.loadAutoComplete();
} }
); );