CSR-563 | Fix error if alert fires with no footer rendered
This commit is contained in:
parent
428a53fdd2
commit
26d9ed341b
2 changed files with 3 additions and 2 deletions
|
|
@ -84,7 +84,7 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onResize() {
|
onResize() {
|
||||||
this.paddingHeight = document.querySelector(".footer #infoBox").offsetHeight;
|
this.paddingHeight = this.getFooterInfoBoxHeight();
|
||||||
},
|
},
|
||||||
updateButtonText(newText) {
|
updateButtonText(newText) {
|
||||||
this.customButtontext = newText;
|
this.customButtontext = newText;
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,8 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
getFooterInfoBoxHeight() {
|
getFooterInfoBoxHeight() {
|
||||||
return document.querySelector(".footer #infoBox").offsetHeight;
|
const footerInfoBox = document.querySelector(".footer #infoBox");
|
||||||
|
return footerInfoBox ? footerInfoBox.offsetHeight : 0;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue