We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 087ca90 commit bd6d1adCopy full SHA for bd6d1ad
src/virtual.js
@@ -75,6 +75,14 @@ export default class Virtual {
75
76
updateParam (key, value) {
77
if (this.param && (key in this.param)) {
78
+ // if uniqueIds reducing, find out deleted id and remove from size map
79
+ if (key === 'uniqueIds' && (value.length < this.param[key].length)) {
80
+ this.sizes.forEach((v, key) => {
81
+ if (!value.includes(key)) {
82
+ this.sizes.delete(key)
83
+ }
84
+ })
85
86
this.param[key] = value
87
}
88
0 commit comments