Skip to content

Commit f127d91

Browse files
authored
fix(b-table): prevent endless reevaluation when using v-model and object/array literal prop values (#5554)
1 parent bc9b8de commit f127d91

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/components/table/helpers/mixin-items.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,10 @@ export default {
105105
}
106106
},
107107
// Watch for changes on `computedItems` and update the `v-model`
108-
computedItems(newVal) {
109-
this.$emit('input', newVal)
108+
computedItems(newVal, oldVal) {
109+
if (!looseEqual(newVal, oldVal)) {
110+
this.$emit('input', newVal)
111+
}
110112
},
111113
// Watch for context changes
112114
context(newVal, oldVal) {

0 commit comments

Comments
 (0)