@vuu-ui/vuu-utils 0.8.27-debug → 0.8.28-debug
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +2 -2
- package/esm/index.js +1 -1
- package/esm/index.js.map +2 -2
- package/package.json +5 -5
- package/types/html-utils.d.ts +4 -4
package/esm/index.js
CHANGED
|
@@ -2478,7 +2478,7 @@ var getElementDataIndex = (el) => {
|
|
|
2478
2478
|
}
|
|
2479
2479
|
return -1;
|
|
2480
2480
|
};
|
|
2481
|
-
var queryClosest = (el, cssQueryString) => el.closest(cssQueryString);
|
|
2481
|
+
var queryClosest = (el, cssQueryString) => el === null ? null : el.closest(cssQueryString);
|
|
2482
2482
|
var getClosest = (el, dataProperty) => queryClosest(el, `[data-${dataProperty}]`);
|
|
2483
2483
|
var getClosestIndexItem = (el) => getClosest(el, "index");
|
|
2484
2484
|
function getElementByDataIndex(container, index, throwIfNotFound = false) {
|