Skip to content

select下拉菜单滚动问题 #3381

@tracy2zhang

Description

@tracy2zhang
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

2.0.0-rc.4

Environment

vue3.0.3

Reproduction link

https://2x.antdv.com/components/select-cn/

Steps to reproduce

  1. select设置多个选项,让下拉菜单出现滚动条
  2. 在下拉菜单中滚动鼠标滚轮,让菜单开始滚动

What is expected?

正常滚动,在滚动条没有触及上下边界时,只有菜单滚动,整个页面不跟随滚动

What is actually happening?

菜单滚动条没有触及上下边界时,整个页面跟随滚动,而且console中还报错[useFrameWheel.js?e5d0:23 Unable to preventDefault inside passive event listener invocation.]


官网的demo就可以复现

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions