Skip to content

Commit a87836d

Browse files
fix(cascadin simple combo): Disabling the next combo and showing the loading indicator on selection
1 parent 5719539 commit a87836d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/app/lists/combo/simple-combo-cascading/simple-combo-cascading.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export class SimpleComboCascadingComponent implements OnInit {
2525
public countryChanging(e: ISimpleComboSelectionChangingEventArgs) {
2626
this.selectedCountry = e.newSelection as Country;
2727
if (e.newSelection){
28+
this.regionData = [];
2829
this.isLoadingRegions = true;
2930
this.loadingTime = 2000;
3031
}
@@ -43,6 +44,7 @@ export class SimpleComboCascadingComponent implements OnInit {
4344
public regionChanging(e: ISimpleComboSelectionChangingEventArgs) {
4445
this.selectedRegion = e.newSelection as Region;
4546
if (e.newSelection){
47+
this.citiesData = [];
4648
this.isLoadingCities = true;
4749
this.loadingTime = 2000;
4850
}

0 commit comments

Comments
 (0)