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] [autocomplete] ElAutocomplete clearable = true时样式抖动 #10924

Closed
hovees opened this issue Dec 7, 2022 · 4 comments
Closed

[Style] [autocomplete] ElAutocomplete clearable = true时样式抖动 #10924

hovees opened this issue Dec 7, 2022 · 4 comments

Comments

@hovees
Copy link

hovees commented Dec 7, 2022

Bug Type: Style

Environment

  • Vue Version: 3.2.45
  • Element Plus Version: 2.2.26
  • Browser / OS: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36
  • Build Tool: Vite

Reproduction

Related Component

  • el-autocomplete

Reproduction Link

Element Plus Playground

Steps to reproduce

鼠标focus在input框,clear按钮出现时input会变长,导致同一行组件位置会抖动

What is Expected?

input框长度不变,参考2.1.8版本

What is actually happening?

input框长度变化

Additional comments

(empty)

@yuniit
Copy link

yuniit commented Dec 8, 2022

I ran into this issue too, set width to component and it worked fine

@loosheng
Copy link
Contributor

loosheng commented Dec 10, 2022

Before #7287 was resolved.
The interim solution is to set a width for el-autocomplete

<el-autocomplete
        v-model="state1"
        style="width:100%"  <!-- or fixed width: style="width:200px" -->
        clearable
        placeholder="Please Input"
        :fetch-suggestions="querySearch"
      />

@tolking
Copy link
Member

tolking commented Dec 12, 2022

Link #7287

@tolking tolking closed this as completed Dec 12, 2022
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

此 issue 已被自动锁定,因为关闭后没有任何近期活动。如果有相关 bug,请重新创建一个新 issue。

@github-actions github-actions bot locked and limited conversation to collaborators Jan 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants