mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 10:38:16 +08:00
fix: select 不在 form 下面报 addHook 不是函数的错误 (#10214)
This commit is contained in:
parent
118aaf5da8
commit
9b11bdcdc4
@ -341,7 +341,10 @@ export default class SelectControl extends React.Component<SelectProps, any> {
|
||||
|
||||
if (!formInited) {
|
||||
this.unHook && this.unHook();
|
||||
return (this.unHook = addHook(this.loadRemote.bind(this, input), 'init'));
|
||||
return (
|
||||
addHook &&
|
||||
(this.unHook = addHook(this.loadRemote.bind(this, input), 'init'))
|
||||
);
|
||||
}
|
||||
|
||||
this.lastTerm = input;
|
||||
|
Loading…
Reference in New Issue
Block a user