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 7c809ad commit 1559ca8Copy full SHA for 1559ca8
packages/vue-virtual-scroller/src/components/DynamicScrollerItem.vue
@@ -58,7 +58,7 @@ export default {
58
id () {
59
if (this.vscrollData.simpleArray) return this.index
60
// eslint-disable-next-line no-prototype-builtins
61
- if (this.item.hasOwnProperty(this.vscrollData.keyField)) return this.item[this.vscrollData.keyField]
+ if (this.vscrollData.keyField in this.item) return this.item[this.vscrollData.keyField]
62
throw new Error(`keyField '${this.vscrollData.keyField}' not found in your item. You should set a valid keyField prop on your Scroller`)
63
},
64
0 commit comments