Skip to content

Commit bdf288d

Browse files
JeanMechealxhub
authored andcommitted
fix(forms): Form provider FormsModule.withConfig return a FormsModule (angular#48526)
Because of a transitive dependency, FormsModule.withConfig wasn't providing FormModule. fixes: angular#48519 PR Close angular#48526
1 parent b9577ad commit bdf288d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

goldens/public-api/forms/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ export interface FormRecord<TControl> {
553553
export class FormsModule {
554554
static withConfig(opts: {
555555
callSetDisabledState?: SetDisabledStateOption;
556-
}): ModuleWithProviders<ReactiveFormsModule>;
556+
}): ModuleWithProviders<FormsModule>;
557557
// (undocumented)
558558
static ɵfac: i0.ɵɵFactoryDeclaration<FormsModule, never>;
559559
// (undocumented)

packages/forms/src/form_providers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export class FormsModule {
3838
*/
3939
static withConfig(opts: {
4040
callSetDisabledState?: SetDisabledStateOption,
41-
}): ModuleWithProviders<ReactiveFormsModule> {
41+
}): ModuleWithProviders<FormsModule> {
4242
return {
4343
ngModule: FormsModule,
4444
providers: [{

0 commit comments

Comments
 (0)