ui: generic-search - conflict with ngxFormErrors + form not submitted when press Enter
key
#3116
Labels
Projects
Milestone
Enter
key
#3116
I'm submitting a...
Current behavior
Using
ngxFormErrors
withgeneric-search
component throws the error:Error: Transition Rejection($id: 3 type: 6, message: The transition errored, detail: Error: StaticInjectorError(AppModule)[MatInput -> FormGroupDirective]: StaticInjectorError(Platform: core)[MatInput -> FormGroupDirective]: NullInjectorError: No provider for FormGroupDirective!)
The solution to this issue is to add the form tag in the html template of the form component
Due to this, the "submit" behavior is broken and pressing
Enter
key does not submit the form as it should.Expected behavior
The form should be submitted when pressing
Enter
key.Minimal reproduction of the problem with instructions
Use
<mat-error ngxFormErrors="<form-control-name>">
in search-form component template used withgeneric-search
What is the motivation / use case for changing the behavior?
Environment
The text was updated successfully, but these errors were encountered: