Skip to content

Commit f4076d1

Browse files
authored
Merge pull request #232 from TheHamkerCat/patch-1
fix: variable typo, isValid
2 parents 96e1ac1 + a3827fa commit f4076d1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/svelte-tel-input/README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@ _Snippet would be too long_ - [Example](https://github.com/gyurielf/svelte-tel-i
6363
name="Country"
6464
bind:value={selectedCountry}
6565
>
66-
<option value={null} hidden={country !== null}>Please select</option>
66+
<option value={null} hidden={selectedCountry !== null}>Please select</option>
6767
{#each normalizedCountries as currentCountry (currentCountry.id)}
6868
<option
6969
value={currentCountry.iso2}
70-
selected={currentCountry.iso2 === country}
71-
aria-selected={currentCountry.iso2 === country}
70+
selected={currentCountry.iso2 === selectedCountry}
71+
aria-selected={currentCountry.iso2 === selectedCountry}
7272
>
7373
{currentCountry.iso2} (+{currentCountry.dialCode})
7474
</option>
@@ -79,7 +79,7 @@ _Snippet would be too long_ - [Example](https://github.com/gyurielf/svelte-tel-i
7979
bind:value
8080
bind:valid
8181
bind:detailedValue
82-
class="basic-tel-input {!isValid ? 'invalid' : ''}"
82+
class="basic-tel-input {!valid ? 'invalid' : ''}"
8383
/>
8484
</div>
8585

0 commit comments

Comments
 (0)