fix: Misc Issues with Ingredient Parser (#6250)

This commit is contained in:
Michael Genson
2025-09-26 11:25:15 -05:00
committed by GitHub
parent f3cc51190c
commit 187e83eeb5
5 changed files with 58 additions and 27 deletions

View File

@@ -59,6 +59,7 @@
class="mx-1"
:placeholder="$t('recipe.choose-unit')"
clearable
:menu-props="{ attach: props.menuAttachTarget, maxHeight: '250px' }"
@keyup.enter="handleUnitEnter"
>
<template #prepend>
@@ -115,6 +116,7 @@
class="mx-1 py-0"
:placeholder="$t('recipe.choose-food')"
clearable
:menu-props="{ attach: props.menuAttachTarget, maxHeight: '250px' }"
@keyup.enter="handleFoodEnter"
>
<template #prepend>
@@ -198,6 +200,10 @@ import type { RecipeIngredient } from "~/lib/api/types/recipe";
const model = defineModel<RecipeIngredient>({ required: true });
const props = defineProps({
menuAttachTarget: {
type: String,
default: "body",
},
unitError: {
type: Boolean,
default: false,