We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b16514b commit 010ab31Copy full SHA for 010ab31
src/components/table/helpers/mixin-tbody.js
@@ -124,9 +124,15 @@ export const tbodyMixin = Vue.extend({
124
}
125
},
126
onTBodyRowClicked(event) {
127
+ const { $refs } = this
128
+ const tbody = $refs.tbody ? $refs.tbody.$el || $refs.tbody : null
129
// Don't emit event when the table is busy, the user clicked
130
// on a non-disabled control or is selecting text
- if (this.tbodyRowEventStopped(event) || filterEvent(event) || textSelectionActive(this.$el)) {
131
+ if (
132
+ this.tbodyRowEventStopped(event) ||
133
+ filterEvent(event) ||
134
+ textSelectionActive(tbody || this.$el)
135
+ ) {
136
return
137
138
this.emitTbodyRowEvent(EVENT_NAME_ROW_CLICKED, event)
0 commit comments