Skip to content

Commit 4f7915c

Browse files
committed
fix(angular): Update country code option tracking
1 parent d3304aa commit 4f7915c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/angular/src/lib/components/country-selector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import { injectCountries, injectDefaultCountry } from "../provider";
3838
[ngModel]="selected().code"
3939
(ngModelChange)="handleCountryChange($event)"
4040
>
41-
@for (country of countries(); track country.code) {
41+
@for (country of countries(); track $index;) {
4242
<option [value]="country.code">{{ country.dialCode }} ({{ country.name }})</option>
4343
}
4444
</select>

0 commit comments

Comments
 (0)