fix: comment module upload function issue fixed#4444
Conversation
|
/next |
|
🎉 PR Next publish successful! 3.8.1-next-1741251026.0 |
| event.stopPropagation(); | ||
| event.preventDefault(); | ||
|
|
||
| const files = event.dataTransfer?.files; // FileList object. |
|
/next |
|
🎉 PR Next publish successful! 3.8.1-next-1741262660.0 |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4444 +/- ##
=======================================
Coverage 53.13% 53.13%
=======================================
Files 1665 1665
Lines 102649 102649
Branches 22225 22217 -8
=======================================
+ Hits 54538 54545 +7
+ Misses 40025 40019 -6
+ Partials 8086 8085 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
/next |
Walkthrough此次修改分别在评论文本区域组件和评论服务中进行了增强。在文本区域组件中,新增了 Changes
Sequence Diagram(s)sequenceDiagram
participant U as 用户
participant M as MentionsInput
participant T as CommentsTextArea
participant D as dragFiles(可选)
U->>M: 执行粘贴操作 (onPaste 事件)
M->>T: 调用 handleFilePaste(event)
T-->>T: 阻止默认粘贴行为与事件传播
T->>T: 检查剪贴板数据是否包含文件
alt 文件存在且 dragFiles 被提供
T->>D: 调用 dragFiles(pasted files)
end
T->>T: 聚焦文本区域并更新光标位置
Warning There were issues while running some tools. Please review the errors and either fix the tool’s configuration or disable the tool if it’s a critical failure. 🔧 ESLint
yarn install v1.22.22 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
⏰ Context from checks skipped due to timeout of 90000ms (6)
🔇 Additional comments (4)
✨ 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:
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 (
|
|
🎉 PR Next publish successful! 3.8.3-next-1741763546.0 |
|
/next |
|
🎉 PR Next publish successful! 3.8.3-next-1741772268.0 |
Types
Background or solution
Changelog
feat: 评论支持复制粘贴图片
Summary by CodeRabbit
新功能
改进