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

<x-input autofocus="autofocus "></ x-input> 控件的autofocus 在 Android 端无效 无法自动获取焦点 #2330

Closed
z575813129 opened this issue Dec 22, 2017 · 3 comments

Comments

@z575813129
Copy link

z575813129 commented Dec 22, 2017

No description provided.

@z575813129 z575813129 changed the title x-input 控件的autofocus 在 Android 端无效 无法自动获取焦点 <x-input autofocus="autofocus "></ x-input> 控件的autofocus 在 Android 端无效 无法自动获取焦点 Dec 22, 2017
@airyland
Copy link
Owner

x-input 并不支持所有原生 input 属性,所以并不能用 autofocus 属性。另一方面,移动端 autofocus 不同机型支持不一致,所以 x-input 组件不会做这个支持,如果有需要,copy x-input 源码进行修改。

@xiatouman
Copy link

为什么X-input 在移动端打开 需要点好几下才获取到焦点

@Mrcypress
Copy link

为什么X-input 在移动端打开 需要点好几下才获取到焦点

我在ios也遇到这个问题,Android倒是没有。 用focus方法ios也不能获取焦点。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants