소스 검색
fix(Models): onLoad should check this.props.layoutSelectors method (#6307)
ref #6305
bubble
Tim Lai
4 년 전
committed by
GitHub
No known key found for this signature in database
GPG 키 ID: 4AEE18F83AFDEB23
1개의 변경된 파일과
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() |
|
|
|