Skip to content

Commit

Permalink
Table: fix highlightCurrentRow regression (#11563)
Browse files Browse the repository at this point in the history
  • Loading branch information
Leopoldthecoder committed Jun 10, 2018
1 parent af1a287 commit e58cffa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/table/src/table-body.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,9 @@ export default {

getRowClass(row, rowIndex) {
const currentRow = this.store.states.currentRow;
const classes = currentRow === row ? ['el-table__row', 'current-row'] : ['el-table__row'];
const classes = this.table.highlightCurrentRow && currentRow === row
? ['el-table__row', 'current-row']
: ['el-table__row'];

if (this.stripe && rowIndex % 2 === 1) {
classes.push('el-table__row--striped');
Expand Down

0 comments on commit e58cffa

Please sign in to comment.