https://ant.design/components/select-cn
复现条件:
1、select下拉列表有滚动条
2、外部列表课滚动
复现步骤:
1、将select滚动条置于底部,这时等待50ms的lock,后续可继续滚动滚动条,这时就是滚动外部的滚动条了,
2、滚动到鼠标离开下拉框后,立即反向滚动,select内部的滚动条也会向上滚动,即使鼠标没在下拉框内部
到鼠标离开下拉框后,除非鼠标重新回到下拉框内部,否则不应该触发内部的scroll事件
目前是会触发上述行为的
Environment | Info |
---|---|
antd | 5.13.3 |
React | 17.* |
System | win 10 |
Browser | chrome 120.0.6099.130 |
在业务中,对全局的scroll事件做了监听,只要发生滚动,会模拟点击行为来关闭select下拉框,由于上述问题,反向滚动后,关闭下拉框时的位置和虚拟列表的数据不符合,发生了错位,导致有部分白屏产生
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too