fix(Models): onLoad should check this.props.layoutSelectors method (#6307)
ref #6305
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user