Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants