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:当自定义后缀图标和清除图标同时存在时,显示错误 #17414

Closed
1 task done
ohhoney1 opened this issue Jul 2, 2019 · 6 comments · Fixed by #17508, #17684 or #18151
Closed
1 task done

Input:当自定义后缀图标和清除图标同时存在时,显示错误 #17414

ohhoney1 opened this issue Jul 2, 2019 · 6 comments · Fixed by #17508, #17684 or #18151
Assignees
Labels
🐛 Bug Ant Design Team had proved that this is a bug. help wanted The suggestion or request has been accepted, we need you to help us by sending a pull request.

Comments

@ohhoney1
Copy link
Contributor

ohhoney1 commented Jul 2, 2019

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

Reproduction link

Edit on CodeSandbox

Steps to reproduce

  1. 已经自定义了后缀图标,且允许清除图标存在
  2. 输入;输入足够多的内容

What is expected?

  1. 当输入的内容超过一定宽度时,清除图标正常显示;
  2. 当后缀图标自定义了大小,例如为 20,清除图标居中

What is actually happening?

  1. 当输入的内容超过一定宽度时,清除图标覆盖到了文字上;
  2. 当后缀图标自定义了大小,例如为 20,清除图标不居中
Environment Info
antd 3.20.0
React 16.8
System mac OS 10.14
Browser Chrome
@afc163 afc163 added the 🐛 Bug Ant Design Team had proved that this is a bug. label Jul 6, 2019
afc163 added a commit that referenced this issue Jul 8, 2019
fix: optimize Input presuffix style(#17414)
@yoyo837
Copy link
Contributor

yoyo837 commented Jul 15, 2019

@LilyWakana

Chrome form autofill:

image

@yoyo837
Copy link
Contributor

yoyo837 commented Jul 15, 2019

error state:

image

@brickspert
Copy link
Contributor

image

yesmeck added a commit that referenced this issue Jul 15, 2019
zombieJ pushed a commit that referenced this issue Jul 15, 2019
* Revert "fix: Style property orders"

This reverts commit 54a992c.

* Revert "fix: optimize Input presuffix style(#17414)"

This reverts commit 9691d2b.
@ohhoney1
Copy link
Contributor Author

之前有注意到那个PR,没想到已经合了而且发布了。。 🤣建议发布个紧急版本吧

@yesmeck
Copy link
Member

yesmeck commented Jul 15, 2019

已发布 3.20.3

@yoyo837
Copy link
Contributor

yoyo837 commented Jul 15, 2019

这个issue reopen 吧

@yesmeck yesmeck reopened this Jul 15, 2019
@afc163 afc163 added the help wanted The suggestion or request has been accepted, we need you to help us by sending a pull request. label Jul 16, 2019
polina-shreyner pushed a commit to wowworks-team/wow-ant-design that referenced this issue Jul 31, 2019
polina-shreyner pushed a commit to wowworks-team/wow-ant-design that referenced this issue Jul 31, 2019
@afc163 afc163 reopened this Aug 7, 2019
afc163 added a commit that referenced this issue Aug 7, 2019
zombieJ pushed a commit that referenced this issue Aug 8, 2019
* 🐛 Fix Input clear icon align problem

close #18150
close #17414

* Update index.less
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. help wanted The suggestion or request has been accepted, we need you to help us by sending a pull request.
Projects
None yet
6 participants