瀏覽代碼

fix(Models): onLoad should check this.props.layoutSelectors method (#6307)

ref #6305
bubble
Tim Lai 4 年之前
committed by GitHub
父節點
當前提交
168d0ae7ac
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      src/core/components/model-collapse.jsx

+ 1
- 1
src/core/components/model-collapse.jsx 查看文件

@@ -65,7 +65,7 @@ export default class ModelCollapse extends Component {
}

onLoad = (ref) => {
if(ref) {
if (ref && this.props.layoutSelectors) {
const scrollToKey = this.props.layoutSelectors.getScrollToKey()

if( Im.is(scrollToKey, this.props.specPath) ) this.toggleCollapsed()


Loading…
取消
儲存