refactor: request data when the drop-down list is opened (#2127)
This commit is contained in:
parent
4d3d00a5d2
commit
360f6ae810
@ -236,7 +236,9 @@ const InternalRemoteSelect = connect(
|
||||
const onDropdownVisibleChange = (visible) => {
|
||||
setOpen(visible);
|
||||
searchData.current = null;
|
||||
run();
|
||||
if (visible) {
|
||||
run();
|
||||
}
|
||||
firstRun.current = true;
|
||||
};
|
||||
return (
|
||||
|
Loading…
Reference in New Issue
Block a user