mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-22 03:33:06 +08:00
fix(core): should not be able to commit comments when uploading images (#13108)
#### PR Dependency Tree * **PR #13108** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * The commit button in the comment editor is now properly disabled while attachments are uploading or when the editor is empty without attachments, preventing accidental or premature submissions. * **New Features** * Attachment delete button now shows a loading state during uploads for clearer user feedback. * **Style** * Updated comment editor attachment button styles for a cleaner and more consistent appearance. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -47,3 +47,7 @@ export const NullCommentInlineSpecExtension =
|
||||
match: () => false,
|
||||
renderer: () => html``,
|
||||
});
|
||||
|
||||
// reuse the same identifier
|
||||
NullCommentInlineSpecExtension.identifier =
|
||||
CommentInlineSpecExtension.identifier;
|
||||
|
||||
Reference in New Issue
Block a user