+
+
{title}
-
diff --git a/components/helpers/click-away.js b/components/helpers/click-away.js
index b7661aea06a..a63266ac496 100644
--- a/components/helpers/click-away.js
+++ b/components/helpers/click-away.js
@@ -3,7 +3,8 @@ export function registerClickAway(callback) {
document.addEventListener("click", unregisterClickAway)
document.querySelectorAll('iframe').forEach(iframe => {
- if (iframe.attributes.src.value.startsWith('/') && !iframe.attributes.src.value.startsWith('//')) {
+ const src = iframe.attributes.src
+ if (src && src.value.startsWith('/') && !src.value.startsWith('//')) {
iframe.contentWindow.document.removeEventListener("click", unregisterClickAway)
iframe.contentWindow.document.addEventListener("click", unregisterClickAway)
}
@@ -12,7 +13,8 @@ export function registerClickAway(callback) {
function unregisterClickAway() {
document.removeEventListener("click", unregisterClickAway)
document.querySelectorAll('iframe').forEach(iframe => {
- if (iframe.attributes.src.value.startsWith('/') && !iframe.attributes.src.value.startsWith('//')) {
+ const src = iframe.attributes.src
+ if (src && src.value.startsWith('/') && !src.value.startsWith('//')) {
iframe.contentWindow.document.removeEventListener("click", unregisterClickAway)
}
})
diff --git a/components/icons/ArrowRight.js b/components/icons/ArrowRight.js
index 3fbaa29546e..dc995cbc5c5 100644
--- a/components/icons/ArrowRight.js
+++ b/components/icons/ArrowRight.js
@@ -1,4 +1,4 @@
-export default function ArrowRight ({ className }) {
+export default function IconArrowRight ({ className }) {
return (