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/6fbdd21 below:

nextTick selection data (#1874) · vuematerial/vue-material@6fbdd21 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+11

-8

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+11

-8

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

@@ -257,6 +257,9 @@

257 257

},

258 258

mdSelectedValue () {

259 259

this.syncSelectedValue()

260 +

},

261 +

value () {

262 +

this.syncSelectedValue()

260 263

}

261 264

},

262 265

methods: {

@@ -333,11 +336,13 @@

333 336

this.$emit('md-selected', val)

334 337

},

335 338

syncSelectedValue () {

336 -

if (this.MdTable.selectingMode === 'single') {

337 -

this.MdTable.singleSelection = this.mdSelectedValue

338 -

} else if (this.MdTable.selectingMode === 'multiple') {

339 -

this.MdTable.selectedItems = this.mdSelectedValue || []

340 -

}

339 +

this.$nextTick().then(() => { // render the table first

340 +

if (this.MdTable.selectingMode === 'single') {

341 +

this.MdTable.singleSelection = this.mdSelectedValue

342 +

} else if (this.MdTable.selectingMode === 'multiple') {

343 +

this.MdTable.selectedItems = this.mdSelectedValue || []

344 +

}

345 +

})

341 346

},

342 347

setWidth () {

343 348

if (this.mdFixedHeader) {

@@ -350,9 +355,7 @@

350 355

this.sortTable()

351 356

}

352 357 353 -

this.$nextTick().then(() => {

354 -

this.syncSelectedValue()

355 -

})

358 +

this.syncSelectedValue()

356 359

},

357 360

mounted () {

358 361

this.setContentEl()

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