-
-
Notifications
You must be signed in to change notification settings - Fork 50k
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
fix: select ref typescript typo #27482
Conversation
Size Change: -1.12 kB (0%) Total Size: 790 kB
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 31b32b2:
|
Codecov Report
@@ Coverage Diff @@
## master #27482 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 389 389
Lines 7404 7385 -19
Branches 2087 2076 -11
=========================================
- Hits 7404 7385 -19
Continue to review full report at Codecov.
|
为啥是 HTMLInputElement,它 Ref 的就是 Select 呀。 。 。 ant-design/components/auto-complete/index.tsx Line 114 in 2a4027b
|
看起来直接定义一个 focus 和 blur 应该就可以了:https://github.com/react-component/select/blob/7ca11a86d61b6b3db493a82bb08cd53ed138dd4d/src/Select.tsx#L73 |
对,只要这两个。之前是 class,现在不需要剩余那些东东了。 |
/rebase |
acd1811
to
31b32b2
Compare
* fix: select ref typescript typo * improve
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
close #27474
💡 Background and solution
📝 Changelog
☑️ Self Check before Merge