Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(table): initial busy of true always makes table busy
Closes issue #1398
  • Loading branch information
tmorehouse committed Nov 23, 2017
1 parent 37ab5cb commit d790bcd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/table/table.vue
Expand Up @@ -339,7 +339,7 @@
localItems: [],
// Note: filteredItems only used to determine if # of items changed
filteredItems: [],
localBusy: this.busy
localBusy: false
}
},
props: {
Expand Down Expand Up @@ -564,7 +564,6 @@
mounted () {
this.localSortBy = this.sortBy
this.localSortDesc = this.sortDesc
this.localBusy = this.busy
if (this.hasProvider) {
this._providerUpdate()
}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d790bcd

Please sign in to comment.