-
-
Notifications
You must be signed in to change notification settings - Fork 51k
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: Typography warning for ref
error
#19074
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please add tests to make sure this change works as expected?
Deploy preview for ant-design ready! Built with commit 637425c |
Codecov Report
@@ Coverage Diff @@
## master #19074 +/- ##
==========================================
- Coverage 97.38% 97.32% -0.06%
==========================================
Files 280 281 +1
Lines 7527 7548 +21
Branches 2063 2110 +47
==========================================
+ Hits 7330 7346 +16
- Misses 196 201 +5
Partials 1 1
Continue to review full report at Codecov.
|
|
||
let RefTypography; | ||
|
||
if (React.forwardRef) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
一开始我是考虑 forwardRef
有兼容性问题,所以没有这样修,4.0 都不需要这样写,感觉需要个 to-do
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
嗯,这些 4.0 发布后再清理就行了。否则每周 4.0 merge master 都一堆冲突。
新版 eslint-plugin-react 有 bug:jsx-eslint/eslint-plugin-react#2423 |
🤔 This is a ...
🔗 Related issue link
fix #19064
ref #19066
💡 Background and solution
📝 Changelog
ref
error.ref
的错误信息。☑️ Self Check before Merge