Skip to content

TreeSelect组件特定情况滚动条上下跳的问题 #2615

@zhuojun1024

Description

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

Version

1.6.4

Environment

系统版本:Windows 10 教育版 1909 ;浏览器版本:版本 84.0.4147.89(正式版本) (64 位);Vue版本:2.6.11

Reproduction link

Edit on CodeSandbox

Steps to reproduce

页面加载完成,首次点击选择框,滚动条会在最底部,第二次点击时,滚动条跳到了顶部,第三次点击时,滚动条跳到了底部,以此反复。去掉showSearch后滚动条正常。

What is expected?

滚动条在顶部或者所选项在视野内

What is actually happening?

滚动条会上下乱跳


只有根节点被选中,并且设置了下拉框最大高度,并且选项较多出现了滚动条,并且设置了showSearch,才会出现的情况

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