File tree 3 files changed +9
-2
lines changed
3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change
1
+ # 1.2.1 (2019-10-9)
2
+
3
+ Bug fix for correctly converting a HTML Collection to Javascript array (was broken for some browsers)
4
+
1
5
# 1.2.0 (2019-10-9)
2
6
3
7
New prop ` onDropSuccess ` callback to obtain column information and indexes for the ondrop event (probably more info than you want to know!)
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-table-hoc-draggable-columns" ,
3
- "version" : " 1.2.0 " ,
3
+ "version" : " 1.2.1 " ,
4
4
"description" : " ReactTable HOC for draggable columns" ,
5
5
"author" : " patricktran" ,
6
6
"license" : " MIT" ,
Original file line number Diff line number Diff line change @@ -66,11 +66,14 @@ export default Component => {
66
66
// end helper methods
67
67
68
68
createDragEvents ( ) {
69
- const headers = DomHelper . findChildrenWithClassName (
69
+ const headersCollection = DomHelper . findChildrenWithClassName (
70
70
this . containerRef . current ,
71
71
`${ this . uniqueId } draggable-header`
72
72
)
73
73
74
+ // convert HTML collection to Javascript array
75
+ const headers = [ ...headersCollection ]
76
+
74
77
headers . forEach ( ( header , i ) => {
75
78
// only allow drag events on drag enabled columns
76
79
if ( header . className . includes ( 'enable-drag' ) ) {
You can’t perform that action at this time.
0 commit comments