mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-11 01:42:34 +00:00
Fixed #5322 - SplitterPanel: nested context hydration fixed
This commit is contained in:
parent
2e90fe4ed3
commit
68741f54d5
2 changed files with 16 additions and 9 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue