From 0c482575ce51b073855e1fc421f4312b2c1929c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Carmona=20Gonz=C3=A1lez?= Date: Thu, 28 Oct 2021 19:24:33 +0200 Subject: [PATCH] fix(cv-tabs): Fix error on parentNode on doScrollIntoView. --- packages/core/src/components/cv-tabs/cv-tabs.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/components/cv-tabs/cv-tabs.vue b/packages/core/src/components/cv-tabs/cv-tabs.vue index e141ac9c7..4bb6946d4 100644 --- a/packages/core/src/components/cv-tabs/cv-tabs.vue +++ b/packages/core/src/components/cv-tabs/cv-tabs.vue @@ -196,7 +196,7 @@ export default { }, doScrollIntoView(index) { const tab = this.$refs.link[index]; - const scrollContainer = tab.parentNode ? tab.parentNode.parentNode : null; + const scrollContainer = tab && tab.parentNode ? tab.parentNode.parentNode : null; let newScrollLeft; if (tab && scrollContainer) {