From bc9186d282d725fa24fba11951b2929857a2426e Mon Sep 17 00:00:00 2001 From: Sergey Skrynnikov Date: Fri, 3 Jul 2020 17:57:11 +0300 Subject: [PATCH] fix(b-table): prevent endless reevaluation when using v-model and object/array literal prop values --- src/components/table/helpers/mixin-items.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/table/helpers/mixin-items.js b/src/components/table/helpers/mixin-items.js index a226a17a780..d18258a2483 100644 --- a/src/components/table/helpers/mixin-items.js +++ b/src/components/table/helpers/mixin-items.js @@ -105,8 +105,10 @@ export default { } }, // Watch for changes on `computedItems` and update the `v-model` - computedItems(newVal) { - this.$emit('input', newVal) + computedItems(newVal, oldVal) { + if (!looseEqual(newVal, oldVal)) { + this.$emit('input', newVal) + } }, // Watch for context changes context(newVal, oldVal) {