fast-table
Advanced tools
Comparing version 1.4.8-beta.1 to 1.4.8-beta.2
@@ -341,2 +341,12 @@ "use strict"; | ||
_defineProperty(this, "_getLast", function (column) { | ||
var children = column.children || []; | ||
if (children.length > 0) { | ||
return _this._getLast(children[children.length - 1]); | ||
} else { | ||
return column; | ||
} | ||
}); | ||
_defineProperty(this, "_updateWidth", function (columns) { | ||
@@ -365,2 +375,3 @@ var wrapperWidth = _this.wrapperWidth || 0; | ||
last = leafColumns[leafColumns.length - 1]; | ||
last = _this._getLast(last); | ||
} | ||
@@ -370,2 +381,3 @@ | ||
last = lcArr[lcArr.length - 1]; | ||
last = _this._getLast(last); | ||
} | ||
@@ -372,0 +384,0 @@ |
{ | ||
"name": "fast-table", | ||
"version": "1.4.8-beta.1", | ||
"version": "1.4.8-beta.2", | ||
"description": "react table fast", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -278,2 +278,11 @@ import React from 'react'; | ||
_getLast = (column) => { | ||
const children = column.children || []; | ||
if (children.length > 0) { | ||
return this._getLast(children[children.length - 1]); | ||
} else { | ||
return column; | ||
} | ||
}; | ||
_updateWidth = (columns) => { | ||
@@ -297,5 +306,7 @@ const wrapperWidth = this.wrapperWidth || 0; | ||
last = leafColumns[leafColumns.length - 1]; | ||
last = this._getLast(last); | ||
} | ||
if (lcArr.length > 0) { | ||
last = lcArr[lcArr.length - 1]; | ||
last = this._getLast(last); | ||
} | ||
@@ -302,0 +313,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
238850
6118