Skip to content

Commit

Permalink
解决在B事件里操作A文本框的resetValue或者clearValue导致失焦的问题,可能引发多次失去焦点事件 (#11236)
Browse files Browse the repository at this point in the history
  • Loading branch information
kangzhanlei authored Nov 22, 2024
1 parent eafca8c commit b65ee7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/amis/src/renderers/Form/InputText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ export default class TextControl extends React.PureComponent<
inputValue: pristineVal
},
() => {
this.focus();
//this.focus();
this.loadAutoComplete();
}
);
Expand Down Expand Up @@ -373,7 +373,7 @@ export default class TextControl extends React.PureComponent<
inputValue: resetValue
},
() => {
this.focus();
//this.focus();
this.loadAutoComplete();
}
);
Expand Down

0 comments on commit b65ee7d

Please sign in to comment.