mirror of
https://github.com/element-plus/element-plus.git
synced 2025-02-17 11:49:41 +08:00
fix(components): [tabs] prevent scroll tab into view after focusing it (#9990)
closed #9980
This commit is contained in:
parent
95c69fe88e
commit
268d87a03b
@ -233,7 +233,7 @@ const TabNav = defineComponent({
|
||||
nextIndex = 0
|
||||
}
|
||||
}
|
||||
tabList[nextIndex].focus() // 改变焦点元素
|
||||
tabList[nextIndex].focus({ preventScroll: true }) // 改变焦点元素
|
||||
tabList[nextIndex].click() // 选中下一个tab
|
||||
setFocus()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user