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组件 #3891

Closed
bf185003 opened this issue Nov 17, 2016 · 6 comments
Closed

input组件 #3891

bf185003 opened this issue Nov 17, 2016 · 6 comments

Comments

@bf185003
Copy link

bf185003 commented Nov 17, 2016

  • antd 版本: 15
  • 操作系统及其版本: mac os
  • 浏览器及其版本: chrome

您做了什么?请提供尽可能详细的重现步骤。

input如果加上校验检查后,后面的图标会遮挡一部分文字,在input很短的情况下,甚至无法输入值。
另外,就算不让校验显示校验图标,也是无法录入,感觉图标隐藏起来并挡住了位置。

补充一下,关掉校验图标,虽然看不到图标了,但是图标的那个位置还是点不下去。

image

@afc163
Copy link
Member

afc163 commented Nov 17, 2016

关掉校验图标。 hasFeedback={false}

@afc163 afc163 closed this as completed Nov 17, 2016
@bf185003
Copy link
Author

关掉校验图标也不行,还是点击不下去。

@afc163
Copy link
Member

afc163 commented Nov 17, 2016

我看看。

@afc163
Copy link
Member

afc163 commented Nov 17, 2016

我试了一下,在 antd@1.11.2 下,hasFeedback={false} 之后,图标那里的 dom 元素直接去掉了。

我不确定到底是什么挡住了你的输入框,建议你在控制台中查看一下,然后截图看一下。

另外,你使用的 antd 版本是多少,我们没有 15 这个版本。

@afc163
Copy link
Member

afc163 commented Nov 17, 2016

不过,出现图标的时候确实不应该挤压和挡住,这个我修正一下。

想了一下,原来的 padding 逻辑还是合理的。不过图标应该对用户操作透明。

@lock
Copy link

lock bot commented May 3, 2018

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators May 3, 2018
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

2 participants