fix: pressing Enter in dialogs now confirms instead of silently closing (#7503)

Co-authored-by: Zdenek <tvuj-email@example.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Michael Genson <genson.michael@gmail.com>
Co-authored-by: Michael Genson <71845777+michael-genson@users.noreply.github.com>
This commit is contained in:
Zdenek Stursa
2026-04-21 17:03:31 +02:00
committed by GitHub
parent b3ce0faf26
commit fce0538671
2 changed files with 8 additions and 1 deletions

View File

@@ -32,7 +32,6 @@
density="compact"
:label="$t('recipe.recipe-name')"
autofocus
@keyup.enter="duplicateRecipe()"
/>
</v-card-text>
</BaseDialog>

View File

@@ -192,6 +192,14 @@ function submitOnEnter() {
return;
}
if (props.canConfirm) {
if (!props.submitDisabled) {
emit("confirm");
dialog.value = false;
}
return;
}
submitEvent();
}