-
-
Notifications
You must be signed in to change notification settings - Fork 46.7k
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(input): missing rtl className for count in TextArea #41319
fix(input): missing rtl className for count in TextArea #41319
Conversation
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## master #41319 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 610 610
Lines 10452 10452
Branches 2848 2848
=========================================
Hits 10452 10452
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
@@ -104,6 +104,7 @@ const TextArea = forwardRef<TextAreaRef, TextAreaProps>( | |||
countWrapper: classNames( | |||
`${prefixCls}-textarea`, | |||
`${prefixCls}-textarea-show-count`, | |||
{ [`${prefixCls}-textarea-show-count-rtl`]: direction === 'rtl' }, |
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.
{ [`${prefixCls}-textarea-show-count-rtl`]: direction === 'rtl' }, | |
`${prefixCls}-textarea-show-count-rtl`: direction === 'rtl', |
How about this?
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.
We can't do that, we need the object to be able to use our direction condition
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
💡 Background and solution
When
showCount
is used, it should be positioned at the end of the elementExamples of the problem:
📝 Changelog
showCount
.showCount
时修复了 RTL 模式下 Input.TextArea 的位置。☑️ Self-Check before Merge