diff --git a/src/common-components/funnel-footer/funnel-footer.vue b/src/common-components/funnel-footer/funnel-footer.vue index 9c98a78b8..27ee88cb3 100644 --- a/src/common-components/funnel-footer/funnel-footer.vue +++ b/src/common-components/funnel-footer/funnel-footer.vue @@ -84,7 +84,7 @@ export default { }, methods: { onResize() { - this.paddingHeight = document.querySelector(".footer #infoBox").offsetHeight; + this.paddingHeight = this.getFooterInfoBoxHeight(); }, updateButtonText(newText) { this.customButtontext = newText; diff --git a/src/mixins/base-mixin.js b/src/mixins/base-mixin.js index b24370911..d0474d67b 100644 --- a/src/mixins/base-mixin.js +++ b/src/mixins/base-mixin.js @@ -43,7 +43,8 @@ export default { } }, getFooterInfoBoxHeight() { - return document.querySelector(".footer #infoBox").offsetHeight; + const footerInfoBox = document.querySelector(".footer #infoBox"); + return footerInfoBox ? footerInfoBox.offsetHeight : 0; } }, computed: {