Skip to content

Commit

Permalink
fix: don't delete image when deleting in caption (#6059)
Browse files Browse the repository at this point in the history
  • Loading branch information
zqran authored Jan 22, 2024
1 parent 7553bea commit 412bf8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/blocks/src/image-block/doc-image-block.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,11 +316,11 @@ export class ImageBlockPageComponent extends BlockElement<ImageBlockModel> {
}

private _onCaptionKeydown(e: KeyboardEvent) {
e.stopPropagation();
this.std.event.activate();
if (e.isComposing) return;
if (e.key === 'Enter') {
e.preventDefault();
e.stopPropagation();
const model = this.model;
const page = model.page;
const target = e.target as HTMLInputElement;
Expand Down

1 comment on commit 412bf8c

@vercel
Copy link

@vercel vercel bot commented on 412bf8c Jan 22, 2024

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

blocksuite – ./packages/playground

try-blocksuite.vercel.app
blocksuite-git-master-toeverything.vercel.app
blocksuite-toeverything.vercel.app

Please sign in to comment.