Skip to content
Permalink
Browse files
fix(b-table): prevent endless reevaluation when using v-model and obj…
…ect/array literal prop values (#5554)
  • Loading branch information
IwalkAlone committed Jul 4, 2020
1 parent bc9b8de commit f127d916d1ddd3a3da37bcb081150f86b356a7a4
Showing 1 changed file with 4 additions and 2 deletions.
@@ -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) {

1 comment on commit f127d91

@vercel
Copy link

@vercel vercel bot commented on f127d91 Jul 4, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.