Skip to content

Commit

Permalink
fix(b-table): prevent endless reevaluation when using v-model and obj…
Browse files Browse the repository at this point in the history
…ect/array literal prop values (bootstrap-vue#5554)
  • Loading branch information
IwalkAlone authored Jul 4, 2020
1 parent bc9b8de commit f127d91
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/table/helpers/mixin-items.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f127d91

Please sign in to comment.