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

[Component] [input] input输入框添加clearable属性,鼠标移入移出长度不固定会频繁闪动 #12381

Closed
njt1340953658 opened this issue Apr 10, 2023 · 3 comments
Labels

Comments

@njt1340953658
Copy link

Bug Type: Component

Environment

  • Vue Version: 3.2.47
  • Element Plus Version: 2.3.3
  • Browser / OS: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"
  • Build Tool: Vite

Reproduction

Related Component

  • el-input

Reproduction Link

Docs CN

Steps to reproduce

input框添加clearable属性,宽度不固定,鼠标进入离开频繁闪动

What is Expected?

清除icon固定在input框内部

What is actually happening?

频繁删掉输入框宽度

Additional comments

(empty)

@MrWeilian
Copy link
Contributor

# 7287

@GuoJikun
Copy link

这个问题已经提了很久了,一直没有公认的很好的解决方案。

@tolking
Copy link
Member

tolking commented Jun 18, 2023

目前推荐为 Input 组件设置一个固定宽度,如果有更优雅的解决办法,欢迎在 #7287 提出

@tolking tolking closed this as completed Jun 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants