Comparing version 7.15.0 to 7.15.1
{ | ||
"name": "ka-table", | ||
"version": "7.15.0", | ||
"version": "7.15.1", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "repository": "github:komarovalexander/ka-table", |
@@ -58,9 +58,12 @@ "use strict"; | ||
var checkPopupPosition = function (column, refToElement, dispatch) { | ||
var _a, _b, _c, _d; | ||
if (refToElement.current && column.isHeaderFilterPopupShown) { | ||
var _a, _b; | ||
var element = refToElement.current; | ||
if (element && column.isHeaderFilterPopupShown) { | ||
var parent_1 = element.offsetParent; | ||
var table = parent_1.closest('table'); | ||
var newPopupPosition = { | ||
x: refToElement.current.offsetLeft + ((_a = refToElement.current.offsetParent) === null || _a === void 0 ? void 0 : _a.offsetLeft), | ||
y: refToElement.current.offsetTop + ((_b = refToElement.current.offsetParent) === null || _b === void 0 ? void 0 : _b.offsetTop) + refToElement.current.offsetHeight | ||
x: element.offsetLeft + (parent_1 === null || parent_1 === void 0 ? void 0 : parent_1.offsetLeft), | ||
y: element.offsetTop + (table === null || table === void 0 ? void 0 : table.offsetTop) + element.offsetHeight | ||
}; | ||
if (newPopupPosition.x !== ((_c = column.headerFilterPopupPosition) === null || _c === void 0 ? void 0 : _c.x) || newPopupPosition.y !== ((_d = column.headerFilterPopupPosition) === null || _d === void 0 ? void 0 : _d.y)) { | ||
if (newPopupPosition.x !== ((_a = column.headerFilterPopupPosition) === null || _a === void 0 ? void 0 : _a.x) || newPopupPosition.y !== ((_b = column.headerFilterPopupPosition) === null || _b === void 0 ? void 0 : _b.y)) { | ||
dispatch((0, actionCreators_1.updatePopupPosition)(newPopupPosition)); | ||
@@ -67,0 +70,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
384500
7802