mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-04-22 21:05:35 -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:
@@ -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