Skip to content

Commit

Permalink
fix: pressing enter in chips of structure check doesn't submit form
Browse files Browse the repository at this point in the history
  • Loading branch information
bsilkyn committed May 24, 2024
1 parent 8b32297 commit 1b68039
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/projects/ProjectStructureEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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')"
>
<template #chip="{ value }">
Expand All @@ -128,7 +128,7 @@ function selectStructureCheck(node: TreeNode): void {
separator=","
:model-value="node.data.getBlockedExtensionList()"
@update:model-value="node.data.setBlockedExtensionList($event)"
@keydown.enter="() => null"
@keydown.enter="(event: KeyboardEvent) => event.preventDefault()"
v-tooltip="t('views.projects.structureChecks.blockedExtensions')"
>
<template #chip="{ value }">
Expand Down

0 comments on commit 1b68039

Please sign in to comment.