From 9689811226b54fe78be1152a9a7492a12e5cf333 Mon Sep 17 00:00:00 2001 From: fundon Date: Mon, 10 Feb 2025 07:57:10 +0000 Subject: [PATCH] fix(editor): typos on embed card modal (#10046) --- .../embed-card-modal/embed-card-caption-edit-modal.ts | 2 +- .../src/components/embed-card-modal/embed-card-create-modal.ts | 2 +- .../src/components/embed-card-modal/embed-card-edit-modal.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/blocksuite/affine/block-bookmark/src/components/embed-card-modal/embed-card-caption-edit-modal.ts b/blocksuite/affine/block-bookmark/src/components/embed-card-modal/embed-card-caption-edit-modal.ts index 9efaa02703..8badc9b435 100644 --- a/blocksuite/affine/block-bookmark/src/components/embed-card-modal/embed-card-caption-edit-modal.ts +++ b/blocksuite/affine/block-bookmark/src/components/embed-card-modal/embed-card-caption-edit-modal.ts @@ -49,7 +49,7 @@ export class EmbedCardEditCaptionEditModal extends WithDisposable( .catch(console.error); this.disposables.addFromEvent(this, 'keydown', this._onKeydown); - this.disposables.addFromEvent(this, 'cup', stopPropagation); + this.disposables.addFromEvent(this, 'cut', stopPropagation); this.disposables.addFromEvent(this, 'copy', stopPropagation); this.disposables.addFromEvent(this, 'paste', stopPropagation); } diff --git a/blocksuite/affine/block-bookmark/src/components/embed-card-modal/embed-card-create-modal.ts b/blocksuite/affine/block-bookmark/src/components/embed-card-modal/embed-card-create-modal.ts index bd1f4e92ef..f0f9a87b0d 100644 --- a/blocksuite/affine/block-bookmark/src/components/embed-card-modal/embed-card-create-modal.ts +++ b/blocksuite/affine/block-bookmark/src/components/embed-card-modal/embed-card-create-modal.ts @@ -122,7 +122,7 @@ export class EmbedCardCreateModal extends WithDisposable(ShadowlessElement) { }) .catch(console.error); this.disposables.addFromEvent(this, 'keydown', this._onDocumentKeydown); - this.disposables.addFromEvent(this, 'cup', stopPropagation); + this.disposables.addFromEvent(this, 'cut', stopPropagation); this.disposables.addFromEvent(this, 'copy', stopPropagation); this.disposables.addFromEvent(this, 'paste', stopPropagation); } diff --git a/blocksuite/affine/block-bookmark/src/components/embed-card-modal/embed-card-edit-modal.ts b/blocksuite/affine/block-bookmark/src/components/embed-card-modal/embed-card-edit-modal.ts index 39858825c0..e8e1569f19 100644 --- a/blocksuite/affine/block-bookmark/src/components/embed-card-modal/embed-card-edit-modal.ts +++ b/blocksuite/affine/block-bookmark/src/components/embed-card-modal/embed-card-edit-modal.ts @@ -306,7 +306,7 @@ export class EmbedCardEditModal extends SignalWatcher( this.disposables.add(listenClickAway(this, this._hide)); this.disposables.addFromEvent(this, 'keydown', this._onKeydown); this.disposables.addFromEvent(this, 'pointerdown', stopPropagation); - this.disposables.addFromEvent(this, 'cup', stopPropagation); + this.disposables.addFromEvent(this, 'cut', stopPropagation); this.disposables.addFromEvent(this, 'copy', stopPropagation); this.disposables.addFromEvent(this, 'paste', stopPropagation);