Bläddra i källkod

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

ref #6305
bubble
Tim Lai 4 år sedan
committed by GitHub
förälder
incheckning
168d0ae7ac
Ingen känd nyckel hittad för denna signaturen i databasen GPG-nyckel ID: 4AEE18F83AFDEB23
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. +1
    -1
      src/core/components/model-collapse.jsx

+ 1
- 1
src/core/components/model-collapse.jsx Visa fil

@@ -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()


Laddar…
Avbryt
Spara