mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-27 08:30:02 +03:00
fix(devui): only disable resize events if collapsible
This commit is contained in:
parent
b1fce36a54
commit
991eed7191
|
@ -69,8 +69,10 @@ export default class TabsHeader extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillUnmount() {
|
componentWillUnmount() {
|
||||||
|
if (this.props.collapsible) {
|
||||||
this.disableResizeEvents();
|
this.disableResizeEvents();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
enableResizeEvents() {
|
enableResizeEvents() {
|
||||||
this.resizeDetector = observeResize(this.tabsWrapperRef, this.collapse);
|
this.resizeDetector = observeResize(this.tabsWrapperRef, this.collapse);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user