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

inputItem clear时存在不可预期的结果 #1955

Closed
pingan1927 opened this issue Oct 18, 2017 · 7 comments
Closed

inputItem clear时存在不可预期的结果 #1955

pingan1927 opened this issue Oct 18, 2017 · 7 comments

Comments

@pingan1927
Copy link
Contributor

Version

1.6.11

Environment

口碑掌柜 iOS

What is actually happening?

不可预期,存在input的内容长度超过0了 clear Icon不出现

@ant-design-bot
Copy link

It will be better to write your issue/comment in English, so more people can understand you.
And this means that more people can help you or benefit from your issue/comment.
See: ant-design/ant-design#4897

@pingan1927
Copy link
Contributor Author

系统级bug

@silentcloud
Copy link
Contributor

@pingan1927 那结论?关掉?

@pingan1927
Copy link
Contributor Author

image

@pingan1927
Copy link
Contributor Author

pingan1927 commented Oct 18, 2017

不能关,点击键盘的完成或者Clear Icon后键盘收起来了,window.document.activeElement却还是input(浏览器抽风了) 这个时候focus这个state为false(不合预期),且再次点击input的时候 不会触发onFocus 把focus这个state设置为true。

@pingan1927 pingan1927 changed the title inputItem clear时自动focus 存在不可预期的结果 inputItem clear时存在不可预期的结果 Oct 18, 2017
@silentcloud
Copy link
Contributor

来个 PR 吧,刚好你也熟这个组件

@pingan1927
Copy link
Contributor Author

已提 review之! @silentcloud

lixiaoyang1992 pushed a commit to lixiaoyang1992/ant-design-mobile that referenced this issue Apr 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants