mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-04-22 04:45:34 -04:00
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:
@@ -32,7 +32,6 @@
|
||||
density="compact"
|
||||
:label="$t('recipe.recipe-name')"
|
||||
autofocus
|
||||
@keyup.enter="duplicateRecipe()"
|
||||
/>
|
||||
</v-card-text>
|
||||
</BaseDialog>
|
||||
|
||||
@@ -192,6 +192,14 @@ function submitOnEnter() {
|
||||
return;
|
||||
}
|
||||
|
||||
if (props.canConfirm) {
|
||||
if (!props.submitDisabled) {
|
||||
emit("confirm");
|
||||
dialog.value = false;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
submitEvent();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user