fix(devui): only disable resize events if collapsible (#549)

This commit is contained in:
Nathan Bierema 2020-08-01 16:13:11 -04:00 committed by GitHub
parent ca4101b942
commit eb4bcc82d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,7 +69,9 @@ export default class TabsHeader extends Component {
}
componentWillUnmount() {
this.disableResizeEvents();
if (this.props.collapsible) {
this.disableResizeEvents();
}
}
enableResizeEvents() {