mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
fix(Sidebar): fix emit wrong index in click event after render new sidebar-item list (#2472)
fix #2369
This commit is contained in:
parent
2c8a619e76
commit
40286a21d5
@ -9,7 +9,7 @@ VantComponent({
|
||||
this.setActive(this.data.activeKey);
|
||||
},
|
||||
unlinked(target) {
|
||||
this.items = this.children.filter(
|
||||
this.children = this.children.filter(
|
||||
(item: WechatMiniprogram.Component.TrivialInstance) => item !== target
|
||||
);
|
||||
this.setActive(this.data.activeKey);
|
||||
|
Loading…
x
Reference in New Issue
Block a user