From 83caf98618624f4b0be8e5ee4f04f199299f28bb Mon Sep 17 00:00:00 2001 From: yoyoyohamapi <8338436+yoyoyohamapi@users.noreply.github.com> Date: Tue, 27 May 2025 06:58:27 +0000 Subject: [PATCH] fix(core): space inside menu input triggers ai menu (#12552) > CLOSE AI-137 ## Summary by CodeRabbit - **Bug Fixes** - Improved input field behavior in context menus by preventing unintended actions caused by keypress events. --- blocksuite/affine/components/src/context-menu/input.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/blocksuite/affine/components/src/context-menu/input.ts b/blocksuite/affine/components/src/context-menu/input.ts index 089180f9e6..ff5d943360 100644 --- a/blocksuite/affine/components/src/context-menu/input.ts +++ b/blocksuite/affine/components/src/context-menu/input.ts @@ -111,6 +111,7 @@ export class MenuInput extends MenuFocusable { }}" @input="${this.onInput}" placeholder="${this.data.placeholder ?? ''}" + @keypress="${this.stopPropagation}" @keydown="${this.onKeydown}" @copy="${this.stopPropagation}" @paste="${this.stopPropagation}"