diff --git a/src/components/tabs/tabs.vue b/src/components/tabs/tabs.vue index ff3236b..4a7404f 100644 --- a/src/components/tabs/tabs.vue +++ b/src/components/tabs/tabs.vue @@ -84,6 +84,10 @@ type: Boolean, default: true }, + captureFocus: { + type: Boolean, + default: false + }, closable: { type: Boolean, default: false @@ -376,7 +380,7 @@ [...this.$refs.panes.children].forEach((el, i) => { if (index === i) { [...el.children].forEach(child => child.style.visibility = 'visible'); - setTimeout(() => focusFirst(el, el), transitionTime); + if (this.captureFocus) setTimeout(() => focusFirst(el, el), transitionTime); } else { setTimeout(() => { [...el.children].forEach(child => child.style.visibility = 'hidden'); -- libgit2 0.21.4