A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/vuematerial/vue-material/commit/6d787bd below:

removeSelectableItem when empty (#1616) · vuematerial/vue-material@6d787bd · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+4

-6

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+4

-6

lines changed Original file line number Diff line number Diff line change

@@ -116,21 +116,19 @@

116 116

},

117 117

addSelectableItem () {

118 118

if (!this.hasMultipleSelection || this.mdDisabled) {

119 -

return

119 +

return false

120 120

}

121 121 122 122

if (this.MdTable.selectable.includes(this.mdItem)) {

123 -

return

123 +

return false

124 124

}

125 125 126 126

this.MdTable.selectable.push(this.mdItem)

127 127

},

128 128

removeSelectableItem (target = this.mdItem) {

129 -

if (!this.hasMultipleSelection) {

130 -

return

129 +

if (this.mdSelectable === 'multiple') {

130 +

this.MdTable.selectable = this.MdTable.selectable.filter(item => item !== target)

131 131

}

132 - 133 -

this.MdTable.selectable = this.MdTable.selectable.filter(item => item !== target)

134 132

}

135 133

},

136 134

created () {

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4