#6 Search results are sometimes appended when the old list should be cleared instead.

已关闭
zPlus6 年之前创建 · 0 条评论
zPlus 评论于 6 年之前

How to reproduce

  1. search something. Wait till search ended.
  2. click X, will start a new search.
  3. click back button to hide keyboard before search in 2. is finished

This seems related to the change of visible space when the keyboard is shown/hidden.

What is likely causing the problem: when the list is reaching the bottom, an automatic request is sent to fetch more radios. The new request is sent because hiding/showing the keyboard fires a new "onScroll" event. Since each new requests kills all previous ones (even if they've not completed), this new automatic request is interpreted as "get more results" instead of "get new results".

How to reproduce 1. search something. Wait till search ended. 2. click `X`, will start a new search. 3. click `back` button to hide keyboard **before** search in `2.` is finished This seems related to the change of visible space when the keyboard is shown/hidden. What is likely causing the problem: when the list is reaching the bottom, an automatic request is sent to fetch more radios. The new request is sent because hiding/showing the keyboard fires a new "onScroll" event. Since each new requests kills all previous ones (even if they've not completed), this new automatic request is interpreted as "get more results" instead of "get new results".
zPlus 在代码提交 6 年之前 中引用了该工单
zPlus6 年之前 关闭
登录 并参与到对话中。
未选择标签
未选择里程碑
未指派成员
1 名参与者
正在加载...
取消
保存
这个人很懒,什么都没留下。