Skip to content

Commit 88e2144

Browse files
authored
Update mixin-busy.js
1 parent 2f53128 commit 88e2144

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,17 @@ export default {
1616
}
1717
},
1818
methods: {
19+
// Event handler helper
20+
stopIfBusy(evt) {
21+
if (this.computedBusy) {
22+
// If table is busy (via provider) then don't propagate
23+
evt.preventDefault()
24+
evt.stopPropagation()
25+
return true
26+
}
27+
return false
28+
},
29+
// Renter the busy indecator or return null if not busy
1930
renderBusy() {
2031
const h = this.$createElement
2132

0 commit comments

Comments
 (0)