Sfoglia il codice sorgente

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

ref #6305
bubble
Tim Lai 4 anni fa
committed by GitHub
parent
commit
168d0ae7ac
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: 4AEE18F83AFDEB23
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      src/core/components/model-collapse.jsx

+ 1
- 1
src/core/components/model-collapse.jsx Vedi File

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


Caricamento…
Annulla
Salva