修复: BUG-260624-01残留(scrollToFirstPending return过早+listener props过滤)
This commit is contained in:
@@ -503,10 +503,12 @@ function collapseAllToolLists(active: Set<string>): void {
|
||||
function scrollToFirstPending(): void {
|
||||
const tcl = toolCardListRef.value as unknown
|
||||
const refs = Array.isArray(tcl) ? tcl : (tcl ? [tcl] : [])
|
||||
// BUG-260624-01 残留修复:遍历所有实例调 scrollToFirstPending,各实例内部 querySelector 无
|
||||
// pending 卡则 no-op,含 pending 的实例滚到其首张待审批卡。原 `return` 首个有方法的实例即停,
|
||||
// pending 若落在后续实例(头部徽标点击场景)滚不到。移除 return 让所有实例尝试,no-op 实例零成本。
|
||||
for (const r of refs) {
|
||||
if (typeof (r as any)?.scrollToFirstPending === 'function') {
|
||||
;(r as any).scrollToFirstPending()
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user