-
Notifications
You must be signed in to change notification settings - Fork 52
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
feat: mentions support allowClear #204
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #204 +/- ##
==========================================
+ Coverage 98.27% 98.31% +0.04%
==========================================
Files 7 7
Lines 232 238 +6
Branches 54 55 +1
==========================================
+ Hits 228 234 +6
Misses 4 4 ☔ View full report in Codecov by Sentry. |
src/Mentions.tsx
Outdated
value={value} | ||
classes={{ | ||
affixWrapper: classNames(classes?.affixWrapper, { | ||
[`${prefixCls}-mentions-allow-clear`]: allowClear, |
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.
这个 className 被用来判断 textarea 是否应该增加右侧 padding,实际上可以判断有没有 suffix,所以这里可以不用加。
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.
更新了
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.
等这个发版了,我再更新antd那边,否则CI还是过不了
ant-design/ant-design#46278