Skip to content

openPage时关闭当前页后,tab序列混乱 #4

@safecat

Description

@safecat

有a/b/c三个页面,id分别为a,b,c。
1.通过menu打开a页面,占用第一个tab。
2.在a页面中调用openPage({id:'b'}),占用第二个tab。
3.在b页面中调用openPage({id:'c',isClose:1}),此时b页面消失,c页面占据第二个tab。
4.在页面顶部点击第二个tab的x按钮,该tab关闭后不会自动select到第一个tab,bui.js:25211报错:
Uncaught TypeError: Cannot call method 'position' of undefined.

_getDistanceToBegin这个函数被调用时,传入的item实际上已经销毁了,于是就不能getdistance了。。。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions