mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-11 09:52:35 +00:00
Update Splitter.vue
check for data integrity before saving
This commit is contained in:
parent
5e341367c2
commit
b699ea89d4
1 changed files with 3 additions and 1 deletions
|
@ -331,7 +331,9 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
saveState() {
|
saveState() {
|
||||||
|
if(Array.isArray(this.panelSizes)) {
|
||||||
this.getStorage().setItem(this.stateKey, JSON.stringify(this.panelSizes));
|
this.getStorage().setItem(this.stateKey, JSON.stringify(this.panelSizes));
|
||||||
|
}
|
||||||
},
|
},
|
||||||
restoreState() {
|
restoreState() {
|
||||||
const storage = this.getStorage();
|
const storage = this.getStorage();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue