diff --git a/src/lib/PhoneInput.svelte b/src/lib/PhoneInput.svelte index 3f87c91..10269f9 100644 --- a/src/lib/PhoneInput.svelte +++ b/src/lib/PhoneInput.svelte @@ -50,8 +50,7 @@ const options: ComboboxOption[] = countries.map((country) => ({ value: country.isoCode, label: `${country.name} (+${country.phonecode})`, - preview: `+${country.phonecode}`, - icon: renderIcon + preview: `+${country.phonecode}` })); let phonecode: string = $derived.by(() => { @@ -118,12 +117,6 @@ }); -{#snippet renderIcon(item: ComboboxOption)} - {#if countrycodeMap[item.value]?.flag} - {countrycodeMap[item.value].flag} - {/if} -{/snippet} -