Permalink
Browse files

fix(table): initial busy of true always makes table busy (#1400)

Closes issue #1398
  • Loading branch information...
tmorehouse authored and pi0 committed Nov 24, 2017
1 parent eb2bc36 commit 029e4d0876fcc8cb8fd4dc613f148edc37bbe325
Showing with 6 additions and 2 deletions.
  1. +6 −2 src/components/table/table.vue
@@ -339,7 +339,7 @@
localItems: [],
// Note: filteredItems only used to determine if # of items changed
filteredItems: [],
localBusy: this.busy
localBusy: false
}
},
props: {
@@ -564,7 +564,6 @@
mounted () {
this.localSortBy = this.sortBy
this.localSortDesc = this.sortDesc
this.localBusy = this.busy
if (this.hasProvider) {
this._providerUpdate()
}
@@ -835,7 +834,12 @@
this.localItems = items && items.length > 0 ? items.slice() : []
this.localBusy = false
this.$emit('refreshed')
// Deprecated root emit
this.emitOnRoot('table::refreshed', this.id)
// New root emit
if (this.id) {
this.emitOnRoot('bv::table::refreshed', this.id)
}
},
_providerUpdate () {
// Refresh the provider items

0 comments on commit 029e4d0

Please sign in to comment.