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

change all props.autoFocus to instance.focus() #1243

Closed
paranoidjk opened this issue Apr 28, 2017 · 7 comments · Fixed by #1789
Closed

change all props.autoFocus to instance.focus() #1243

paranoidjk opened this issue Apr 28, 2017 · 7 comments · Fixed by #1789
Assignees
Labels
Milestone

Comments

@paranoidjk
Copy link
Contributor

paranoidjk commented Apr 28, 2017

@paranoidjk paranoidjk self-assigned this Apr 28, 2017
@paranoidjk paranoidjk added this to the 2.0.0 milestone Apr 28, 2017
@paranoidjk paranoidjk changed the title Change all props.autoFocus to instance.focus() change all props.autoFocus to instance.focus() Apr 29, 2017
@pingan1927
Copy link
Contributor

good idea,it's be very ok

@paranoidjk
Copy link
Contributor Author

@pingan1927 有空的话可以到 2.0 的分支上开始改。 https://github.com/ant-design/ant-design-mobile/tree/feature-2.0

@pingan1927
Copy link
Contributor

嗯 这两周又开始通宵了!

@paranoidjk
Copy link
Contributor Author

One more reason to remove this autoFocus feature

UIWebView keyboardDisplayRequiresUserAction

When this property is set to true, the user must explicitly tap the elements in the web view to display the keyboard (or other relevant input view) for that element. When set to false, a focus event on an element causes the input view to be displayed and associated with that element automatically.
The default value for this property is true.

https://developer.apple.com/documentation/uikit/uiwebview/1617967-keyboarddisplayrequiresuseractio

WKWebView

Even do not have this api

@benjycui
Copy link
Contributor

cc @silentcloud

@paranoidjk
Copy link
Contributor Author

@paranoidjk paranoidjk reopened this Oct 16, 2017
@paranoidjk
Copy link
Contributor Author

paranoidjk commented Oct 16, 2017

paranoidjk added a commit that referenced this issue Oct 19, 2017
)

* feat(SearchBar): replace autoFocus, focused with instance.focus()

#1243

* add changelog
lixiaoyang1992 pushed a commit to lixiaoyang1992/ant-design-mobile that referenced this issue Apr 26, 2018
…t-design#1963)

* feat(SearchBar): replace autoFocus, focused with instance.focus()

ant-design#1243

* add changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
6 participants