[fix] 文本框在非表单容器下配置自动补全出错 (#3760)

This commit is contained in:
yangwei9012 2022-03-15 12:05:45 +08:00 committed by GitHub
parent 2c4337a052
commit bd96b30b08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -179,7 +179,7 @@ export default class TextControl extends React.PureComponent<
term: ''
})
);
} else {
} else if (addHook) {
this.unHook = addHook(async (data: any) => {
await formItem.loadOptions(
autoComplete,