mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
fix: collapse 没有开启收起功能能,收起配置无效 (#3243)
This commit is contained in:
parent
a76b5ae733
commit
e1f892de0e
@ -79,7 +79,7 @@ export class Collapse extends React.Component<CollapseProps, CollapseState> {
|
||||
super(props);
|
||||
|
||||
this.toggleCollapsed = this.toggleCollapsed.bind(this);
|
||||
this.state.collapsed = !!props.collapsed;
|
||||
this.state.collapsed = props.collapsable ? !!props.collapsed : false;
|
||||
}
|
||||
|
||||
static getDerivedStateFromProps(
|
||||
|
Loading…
Reference in New Issue
Block a user