Commit bfd7d023 authored by 杨奕's avatar 杨奕 Committed by GitHub

Tabs: fix exception in scrollToActiveTab (#10187)

parent b60c2cac
......@@ -81,6 +81,7 @@
if (!this.scrollable) return;
const nav = this.$refs.nav;
const activeTab = this.$el.querySelector('.is-active');
if (!activeTab) return;
const navScroll = this.$refs.navScroll;
const activeTabBounding = activeTab.getBoundingClientRect();
const navScrollBounding = navScroll.getBoundingClientRect();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment