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] [Component] [input] input组件的父元素样式设置了display:inline-block;,宽度未设置时,给input配置了一键清空,hover上去会改变文本框宽度,而Vue2.x的input组件没有该问题 #12962

Closed
sayakakiviko opened this issue May 26, 2023 · 4 comments

Comments

@sayakakiviko
Copy link

Bug Type: Component

Environment

  • Vue Version: 3.2.45
  • Element Plus Version: 2.2.32
  • Browser / OS: Chrome 109.0.5414.120
  • Build Tool: Vite

Reproduction

Related Component

  • el-button

Reproduction Link

Element Plus Playground

Steps to reproduce

文本框输入任意内容,然后悬浮上去,会发现文本框的宽度在变化

What is Expected?

清空按钮的出现不改变文本框宽度

What is actually happening?

清空按钮的出现会改变文本框宽度

Additional comments

(empty)

@chenxch
Copy link
Member

chenxch commented May 29, 2023

I think what you want to feedback should be the input component, not the button.
#7287

@sayakakiviko sayakakiviko changed the title [Component] [button] [Component] [button] button组件的父元素样式设置了display:inline-block;,宽度未设置时,给button配置了一键清空,hover上去会改变文本框宽度,而Vue2.x的button组件没有该问题 [Component] [input] [Component] [input] input组件的父元素样式设置了display:inline-block;,宽度未设置时,给input配置了一键清空,hover上去会改变文本框宽度,而Vue2.x的input组件没有该问题 May 29, 2023
@lyric-zemin
Copy link
Contributor

@sayakakiviko 你需要加上宽度 demo

@chenxch
Copy link
Member

chenxch commented Jun 24, 2023

@sayakakiviko 如果没有其他问题,我将先关闭。

@chenxch chenxch closed this as not planned Won't fix, can't repro, duplicate, stale Jun 24, 2023
@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 Jul 24, 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

3 participants