From 1b680399a85296ae94e189f8b1b4589a9c94bb7f Mon Sep 17 00:00:00 2001 From: bsilkyn Date: Fri, 24 May 2024 14:33:03 +0200 Subject: [PATCH] fix: pressing enter in chips of structure check doesn't submit form --- frontend/src/components/projects/ProjectStructureEditor.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/projects/ProjectStructureEditor.vue b/frontend/src/components/projects/ProjectStructureEditor.vue index 5d935787..1aa37cc8 100644 --- a/frontend/src/components/projects/ProjectStructureEditor.vue +++ b/frontend/src/components/projects/ProjectStructureEditor.vue @@ -114,7 +114,7 @@ function selectStructureCheck(node: TreeNode): void { separator="," :model-value="node.data.getObligatedExtensionList()" @update:model-value="node.data.setObligatedExtensionList($event)" - @keydown.enter="() => null" + @keydown.enter="(event: KeyboardEvent) => event.preventDefault()" v-tooltip="t('views.projects.structureChecks.obligatedExtensions')" >