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

Input相关组件 allowClear 属性设置为 true 之后组件的交互问题. #18481

Closed
1 task done
MLDIE opened this issue Aug 26, 2019 · 1 comment · Fixed by #18482
Closed
1 task done

Input相关组件 allowClear 属性设置为 true 之后组件的交互问题. #18481

MLDIE opened this issue Aug 26, 2019 · 1 comment · Fixed by #18482
Assignees
Labels
🐛 Bug Ant Design Team had proved that this is a bug. 👷🏻‍♂️ Someone working on it

Comments

@MLDIE
Copy link

MLDIE commented Aug 26, 2019

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

Reproduction link

https://codepen.io/MLDIE/pen/eYOvPvN?editors=0010

Steps to reproduce

已显示

What is expected?

Input 组件 allowClear 属性设置为 true 之后交互能与 Select 组件统一:

  1. Input 组件 disabled之后 不显示 clearIcon;
  2. Input 组件 有默认值时, 鼠标 hover 才显示 clearIcon;

What is actually happening?

  1. Input 组件 disabled 之后也显示了 clearIcon;
  2. Input 组件有默认值时, 直接显示 clearIcon, 与 Select 交互不统一;
Environment Info
antd 3.22.1
React ^16.8.6
System windows 10
Browser Chrome 74.0.3729.131

不清楚是设计如此还是怎么回事, 希望能有统一的交互, 谢谢

@ZzNb0813
Copy link

ZzNb0813 commented Apr 19, 2022

Input 组件 有默认值时, 鼠标 hover 才显示 clearIcon ,该问题有人处理不? 直接显示感觉怪怪的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Ant Design Team had proved that this is a bug. 👷🏻‍♂️ Someone working on it
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants