Skip to content

Commit 47221d2

Browse files
committed
thClass instead of className
1 parent efe7eb0 commit 47221d2

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

build/reactable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ window.React["default"] = window.React;
686686
}
687687

688688
if (typeof column.props === 'object' && typeof column.props.className === 'string') {
689-
className += ' ' + column.props.className;
689+
thClass += ' ' + column.props.className;
690690
}
691691

692692
Ths.push(_react['default'].createElement(

lib/reactable/thead.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ var Thead = (function (_React$Component) {
6868
}
6969

7070
if (typeof column.props === 'object' && typeof column.props.className === 'string') {
71-
className += ' ' + column.props.className;
71+
thClass += ' ' + column.props.className;
7272
}
7373

7474
Ths.push(_react2['default'].createElement(

src/reactable/thead.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export class Thead extends React.Component {
6060
typeof(column.props) === 'object' &&
6161
typeof(column.props.className) === 'string'
6262
) {
63-
className += ` ${column.props.className}`;
63+
thClass += ` ${column.props.className}`;
6464
}
6565

6666
Ths.push(
@@ -92,4 +92,3 @@ export class Thead extends React.Component {
9292
);
9393
}
9494
};
95-

0 commit comments

Comments
 (0)