Fixed #5322 - SplitterPanel: nested context hydration fixed

This commit is contained in:
tugcekucukoglu 2024-02-22 15:12:55 +03:00
parent 2e90fe4ed3
commit 68741f54d5
2 changed files with 16 additions and 9 deletions

View file

@ -11,10 +11,17 @@ export default {
name: 'SplitterPanel',
extends: BaseSplitterPanel,
inheritAttrs: false,
data() {
return {
nestedState: null
};
},
computed: {
isNested() {
return this.$slots.default().some((child) => {
return child.type.name === 'Splitter';
this.nestedState = child.type.name === 'Splitter' ? true : null;
return this.nestedState;
});
},
getPTOptions() {