tabs: don't hide the tabs that going to be shown (avoid resetting scrollstate)
This commit is contained in:
parent
0da7a78b86
commit
bc77df2670
1 changed files with 1 additions and 1 deletions
|
|
@ -176,7 +176,7 @@ module.exports = class Panel extends _widgets_base {
|
|||
if (this.tabs.length && typeof v == 'number' && v >= 0 && v < this.tabs.length) {
|
||||
|
||||
for (let i in this.tabs) {
|
||||
this.tabs[i].hide()
|
||||
if (i != v) this.tabs[i].hide()
|
||||
}
|
||||
|
||||
this.value = v
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue