Files
klz-cables.com/.pnpm-store/v10/files/6c/67229f9c90a065d67dadf477fa04009c460871cf86764f6cd4e92ea42aaa2994a51371d2a777a69b1d29c6388a853cab39de17d6cdfa88cc867a432b0bef80
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

15 lines
358 B
Plaintext

export const getOffsetTop = element => {
let el = element;
// Set our distance placeholder
let distance = 0;
// Loop up the DOM
if (el.offsetParent) {
do {
distance += el.offsetTop;
el = el.offsetParent;
} while (el);
}
// Return our distance
return distance < 0 ? 0 : distance;
};
//# sourceMappingURL=getOffsetTop.js.map