@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/cjs/index.js
CHANGED
|
@@ -2733,7 +2733,7 @@ var getElementDataIndex = (el) => {
|
|
|
2733
2733
|
}
|
|
2734
2734
|
return -1;
|
|
2735
2735
|
};
|
|
2736
|
-
var queryClosest = (el, cssQueryString) => el.closest(cssQueryString);
|
|
2736
|
+
var queryClosest = (el, cssQueryString) => el === null ? null : el.closest(cssQueryString);
|
|
2737
2737
|
var getClosest = (el, dataProperty) => queryClosest(el, `[data-${dataProperty}]`);
|
|
2738
2738
|
var getClosestIndexItem = (el) => getClosest(el, "index");
|
|
2739
2739
|
function getElementByDataIndex(container, index, throwIfNotFound = false) {
|