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

feat: mentions support allowClear #204

Merged
merged 4 commits into from
Dec 14, 2023

Conversation

yociduo
Copy link
Contributor

@yociduo yociduo commented Dec 7, 2023

Copy link

codecov bot commented Dec 8, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (fb168c2) 98.27% compared to head (0e0fba9) 98.31%.

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.
📢 Have feedback on the report? Share it here.

src/Mentions.tsx Outdated
value={value}
classes={{
affixWrapper: classNames(classes?.affixWrapper, {
[`${prefixCls}-mentions-allow-clear`]: allowClear,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个 className 被用来判断 textarea 是否应该增加右侧 padding,实际上可以判断有没有 suffix,所以这里可以不用加。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

更新了

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

等这个发版了,我再更新antd那边,否则CI还是过不了

@yociduo yociduo requested a review from MadCcc December 13, 2023 11:57
@MadCcc MadCcc merged commit 07d13ad into react-component:master Dec 14, 2023
7 checks passed
@yociduo yociduo deleted the feat/allow-clear branch December 14, 2023 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants