File tree Expand file tree Collapse file tree
combo/simple-combo-cascading Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,15 +28,16 @@ export class SimpleComboCascadingComponent implements OnInit {
2828 this . regionData = [ ] ;
2929 this . isLoadingRegions = true ;
3030 this . loadingTime = 2000 ;
31+ } else {
32+ this . selectedRegion = undefined ;
33+ this . selectedCity = undefined ;
3134 }
3235 setTimeout ( ( ) => {
3336 this . regionData = getCitiesByCountry ( [ this . selectedCountry ?. name ] )
3437 . map ( c => ( { name : c . region , country : c . country } ) )
3538 . filter ( ( v , i , a ) => a . findIndex ( r => r . name === v . name ) === i ) ;
3639 this . isLoadingRegions = false ;
3740 } , this . loadingTime )
38- this . selectedRegion = null ;
39- this . selectedCity = null ;
4041 this . citiesData = [ ] ;
4142 this . loadingTime = 0 ;
4243 }
@@ -47,13 +48,14 @@ export class SimpleComboCascadingComponent implements OnInit {
4748 this . citiesData = [ ] ;
4849 this . isLoadingCities = true ;
4950 this . loadingTime = 2000 ;
51+ } else {
52+ this . selectedCity = undefined ;
5053 }
5154 setTimeout ( ( ) => {
5255 this . citiesData = getCitiesByCountry ( [ this . selectedCountry ?. name ] )
5356 . filter ( c => c . region === this . selectedRegion ?. name ) ;
5457 this . isLoadingCities = false ;
5558 } , this . loadingTime )
56- this . selectedCity = null ;
5759 this . loadingTime = 0 ;
5860 }
5961}
Original file line number Diff line number Diff line change @@ -89,15 +89,15 @@ import { SimpleComboRemoteComponent } from './combo/simple-combo-remote/simple-c
8989 IgxButtonModule ,
9090 IgxSliderModule ,
9191 IgxComboModule ,
92+ IgxSimpleComboModule ,
9293 IgxSwitchModule ,
9394 IgxToastModule ,
9495 IgxButtonGroupModule ,
9596 IgxRippleModule ,
9697 IgxCardModule ,
9798 IgxTreeModule ,
9899 IgxTooltipModule ,
99- IgxFinancialChartModule ,
100- IgxSimpleComboModule ,
101100 IgxProgressBarModule ,
101+ IgxFinancialChartModule ,
102102 IgxIconButtonDirective ] , providers : [ provideHttpClient ( withInterceptorsFromDi ( ) ) ] } )
103103export class ListsModule { }
You can’t perform that action at this time.
0 commit comments