Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

row-class-name attribute function return the row with undefined #16

Closed
sknightq opened this issue Jul 30, 2018 · 1 comment
Closed

row-class-name attribute function return the row with undefined #16

sknightq opened this issue Jul 30, 2018 · 1 comment

Comments

@sknightq
Copy link

The following code in table-body.js on line 44. I found the this.row is undefined, I replaced it with this.rows[index], then will be OK.

if (typeof this.table.rowClassName !== 'undefined') {
  const customRowClass = typeof this.table.rowClassName === 'function' ? this.table.rowClassName({ row: this.row, rowIndex: index }) : this.table.rowClassName;
  cls.push(typeof customRowClass === 'string' ? customRowClass : '');
}
@sknightq sknightq changed the title row-class-name attribute return the row withe undefined row-class-name attribute function return the row with undefined Jul 30, 2018
@dwqs
Copy link
Owner

dwqs commented Jul 30, 2018

@sknightq Thks

@dwqs dwqs closed this as completed in 7a5cc8c Jul 30, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants