We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f180f6 commit 6d787bdCopy full SHA for 6d787bd
src/components/MdTable/MdTableRow.vue
@@ -116,21 +116,19 @@
116
},
117
addSelectableItem () {
118
if (!this.hasMultipleSelection || this.mdDisabled) {
119
- return
+ return false
120
}
121
122
if (this.MdTable.selectable.includes(this.mdItem)) {
123
124
125
126
this.MdTable.selectable.push(this.mdItem)
127
128
removeSelectableItem (target = this.mdItem) {
129
- if (!this.hasMultipleSelection) {
130
+ if (this.mdSelectable === 'multiple') {
+ this.MdTable.selectable = this.MdTable.selectable.filter(item => item !== target)
131
132
-
133
- this.MdTable.selectable = this.MdTable.selectable.filter(item => item !== target)
134
135
136
created () {
0 commit comments