From ed71a88fc63b04ddde9d562f454cf12c4aae91ba Mon Sep 17 00:00:00 2001 From: neverland Date: Sun, 18 Nov 2018 10:34:12 +0800 Subject: [PATCH] [bugfix] Tab: auto scroll top when switched in sticky mode (#2105) --- packages/tabs/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/tabs/index.vue b/packages/tabs/index.vue index 8712927f6..0e8b26da5 100644 --- a/packages/tabs/index.vue +++ b/packages/tabs/index.vue @@ -156,7 +156,7 @@ export default create({ this.setLine(); // scroll to correct position - if (this.position === 'page-top' || this.position === 'content-bottom') { + if (this.position === 'top' || this.position === 'bottom') { scrollUtils.setScrollTop(window, scrollUtils.getElementTop(this.$el)); } },