This commit is contained in:
Maximilian Hils 2022-11-28 12:06:00 +01:00 committed by GitHub
parent 6c9b4fec24
commit e20aec75b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -87,8 +87,12 @@ export default class Splitter extends Component<SplitterProps, SplitterState> {
const node = ReactDOM.findDOMNode(this)
node.previousElementSibling.style.flex = ''
node.nextElementSibling.style.flex = ''
if (node.previousElementSibling){
node.previousElementSibling.style.flex = ''
}
if (node.nextElementSibling) {
node.nextElementSibling.style.flex = ''
}
if (!willUnmount) {
this.setState({ applied: false })