feat: TextArea component style only accepts the resize parameter#296
Conversation
|
Warning Rate limit exceeded@jin19980928 has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 16 minutes and 43 seconds before requesting another review. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (2)
Walkthrough本次更改在 Changes
Poem
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #296 +/- ##
=======================================
Coverage 98.04% 98.04%
=======================================
Files 8 8
Lines 256 256
Branches 59 60 +1
=======================================
Hits 251 251
Misses 5 5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| > | ||
| <TextArea | ||
| classNames={{ textarea: mentionClassNames?.textarea }} | ||
| style={{ resize: style?.resize }} |
| it('should not apply resize style if not provided', () => { | ||
| const { container } = render( | ||
| <Mentions> | ||
| <Option value="bamboo">Bamboo</Option> | ||
| <Option value="light">Light</Option> | ||
| <Option value="cat">Cat</Option> | ||
| </Mentions>, | ||
| ); | ||
|
|
||
| const textarea = container.querySelector('textarea'); | ||
| expect(textarea).not.toBeNull(); | ||
| expect(textarea?.style.resize).toBe(''); | ||
| }); |
issue:ant-design/ant-design#49935
Summary by CodeRabbit
新功能
测试