-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Comments
props.autoFocus
to instance.focus()
props.autoFocus
to instance.focus()
good idea,it's be very ok |
@pingan1927 有空的话可以到 2.0 的分支上开始改。 https://github.com/ant-design/ant-design-mobile/tree/feature-2.0 |
嗯 这两周又开始通宵了! |
One more reason to remove this autoFocus feature UIWebView keyboardDisplayRequiresUserAction
https://developer.apple.com/documentation/uikit/uiwebview/1617967-keyboarddisplayrequiresuseractio WKWebViewEven do not have this api |
cc @silentcloud |
) * feat(SearchBar): replace autoFocus, focused with instance.focus() #1243 * add changelog
…t-design#1963) * feat(SearchBar): replace autoFocus, focused with instance.focus() ant-design#1243 * add changelog
Uptdaed: https://facebook.github.io/react/docs/refs-and-the-dom.html#when-to-use-refs
ref: ant-design/ant-design#3790
https://github.com/ant-design/ant-design-mobile/search?utf8=%E2%9C%93&q=autoFocus&type=
https://github.com/ant-design/ant-design-mobile/search?q=autoFocus&type=Issues&utf8=%E2%9C%93
#1514
no messy job, if users want a input be focused automatic, use
refs.foo.focus()
in componentDidMountcc @benjycui @pingan1927
The text was updated successfully, but these errors were encountered: