{ handleInputEnd() }} bind:value={searchBar} type="text" placeholder="Type ingredients and/or add a '#' in front to filter by tags" class="input input-bordered w-full" />
{ await searchRecipes() }} class="btn btn-square" >
{#if searchMatches.length > 0}
{#each searchMatches as ingredient, i}
setInputVal(ingredient)} >
{ingredient}
{/each}
{/if}
{#if tags.length > 0}
{#each tags as tag, i}
removeFromTags(tag)} >
#{tag}
{/each}
{/if} {#if fridge.length > 0}
Your Fridge:
{#each fridge as ing, i}
removeFromFridge(ing)} >
{ing}
{/each}
{/if}
{#await tags then} {#if recipes.length > 0}
{#each recipes as recipe, i}
{/each}
{:else} {searchStatus} {/if} {/await}
{ handleAutoCompTO(e) }} />