Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Style] [tree-select] el-tree-select 选择器 过滤后,选择框高度发生变化,但定位不刷新 (上侧漂浮时,远离输入框) #9261

Closed
10700 opened this issue Aug 10, 2022 · 2 comments · Fixed by #10104

Comments

@10700
Copy link

10700 commented Aug 10, 2022

Bug Type: Style

Environment

  • Vue Version: 3.2.37
  • Element Plus Version: 2.2.12
  • Browser / OS: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36
  • Build Tool: Vue CLI

Reproduction

Related Component

  • el-tree-select

Reproduction Link

Element Plus Playground

Steps to reproduce

1、将el-tree-select 元素尽可能放到页面底部,使其选择框漂浮到元素上侧
2、输入过滤条件

What is Expected?

筛选符合条件的数据,
选择框高度变低,定位下移, 选择框紧挨着对应的元素

What is actually happening?

选择框的定位并未发生改变,导致选择框 远离对应的输入框

Additional comments

class="el-popper is-pure is-light el-select__popper el-tree-select__popper"

过滤后,选择框内容变少,高度变低,,但对应弹出框定位,并未根据选择框的高度自动变化

输入框 再输入一个不匹配的字符,选择项空、然后删除,定位会自动刷新,正常显示

image

@mcguire-w
Copy link

问题有解决吗,我也遇到了这问题

@10700
Copy link
Author

10700 commented Nov 12, 2022

漂亮

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants