diff --git a/src/lib/elements/forms/inputEmail.svelte b/src/lib/elements/forms/inputEmail.svelte index 0ce322cba1..e032d795a9 100644 --- a/src/lib/elements/forms/inputEmail.svelte +++ b/src/lib/elements/forms/inputEmail.svelte @@ -9,6 +9,7 @@ export let value = ''; export let placeholder = ''; export let required = false; + export let nullable = false; export let disabled = false; export let readonly = false; export let autofocus = false; @@ -70,7 +71,7 @@ bind:value bind:this={element} on:invalid={handleInvalid} /> - {#if !required} + {#if nullable && !required}