Skip to content

Commit a81a879

Browse files
committed
fix for react 16
1 parent 7c8896f commit a81a879

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
@@ -556,7 +556,7 @@ window.ReactDOM["default"] = window.ReactDOM;
556556
// Manually transfer props
557557
var props = (0, _libFilter_props_from.filterPropsFrom)(this.props);
558558

559-
return _react['default'].DOM.tr(props, children);
559+
return _react['default'].createElement('tr', props, children);
560560
}
561561
}]);
562562

lib/reactable/tr.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ var Tr = (function (_React$Component) {
6969
// Manually transfer props
7070
var props = (0, _libFilter_props_from.filterPropsFrom)(this.props);
7171

72-
return _react2['default'].DOM.tr(props, children);
72+
return _react2['default'].createElement('tr', props, children);
7373
}
7474
}]);
7575

src/reactable/tr.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,9 @@ export class Tr extends React.Component {
3838
// Manually transfer props
3939
var props = filterPropsFrom(this.props);
4040

41-
return React.DOM.tr(props, children);
41+
return React.createElement('tr', props, children);
4242
}
4343
};
4444

4545
Tr.childNode = Td;
4646
Tr.dataType = 'object';
47-

0 commit comments

Comments
 (0)