mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-03 12:29:24 +08:00
fix(amis-editor): 接口适配器输入时不自动对其进行折叠隐藏
This commit is contained in:
parent
5315a355c4
commit
3f1b1117b5
@ -64,14 +64,6 @@ export default class APIAdaptorControl extends React.Component<
|
||||
};
|
||||
}
|
||||
|
||||
componentDidUpdate(prevProps: Readonly<APIAdaptorControlProps>): void {
|
||||
if (this.props.value !== prevProps.value) {
|
||||
this.setState({
|
||||
switch: !!this.props.value
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@autobind
|
||||
onChange(value: any = '') {
|
||||
this.props.onChange?.(value);
|
||||
|
Loading…
Reference in New Issue
Block a user