Skip to content

Commit e58cffa

Browse files
Table: fix highlightCurrentRow regression (#11563)
1 parent af1a287 commit e58cffa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/table/src/table-body.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,9 @@ export default {
268268

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

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

0 commit comments

Comments
 (0)