Skip to content
This repository was archived by the owner on Dec 26, 2021. It is now read-only.

Commit b757bba

Browse files
committed
reset select value
1 parent 9d1087b commit b757bba

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

projects/example/src/app/components/form-editor-city-selector/form-editor-city-selector.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ export class FormEditorCitySelectorComponent extends FormFieldEditorComponent<st
2121
this.dependencyValues['country'],
2222
this.dependencyValues['state'],
2323
]).pipe(
24-
switchMap(([country, state]) => this._countryDataService.citiesByCountryAndState(country, state)),
2524
tap(() => this.notifyValueChanged(null)),
25+
switchMap(([country, state]) => this._countryDataService.citiesByCountryAndState(country, state)),
2626
);
2727
}
2828

projects/example/src/app/components/form-editor-state-selector/form-editor-state-selector.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ export class FormEditorStateSelectorComponent extends FormFieldEditorComponent<s
1818

1919
ngOnInit() {
2020
this._states = this.dependencyValues['country'].pipe(
21-
switchMap(country => this._countryDataService.statesByCountry(country)),
2221
tap(() => this.notifyValueChanged(null)),
22+
switchMap(country => this._countryDataService.statesByCountry(country)),
2323
);
2424
}
2525

0 commit comments

Comments
 (0)