fix: 修复在切换节点时, 设置区没有回到首个 tab

This commit is contained in:
lihao.ylh 2021-06-28 15:10:09 +08:00
parent 6cb8bf2751
commit 29eeaa07d1

View File

@ -22,6 +22,10 @@ export class SettingsPrimaryPane extends Component<{ editor: Editor; config: any
componentDidMount() {
this.setShouldIgnoreRoot();
this.props.editor.on('designer.selection.change', () => {
this._activeKey = null;
});
}
async setShouldIgnoreRoot() {