You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ ] Regression (a behavior that used to work and stopped working in a new release)
[X] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/NationalBankBelgium/stark/blob/master/CONTRIBUTING.md#got-a-question-or-problem
Current behavior
Using ngxFormErrors with generic-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
<form[formGroup]="searchForm"><!-- form component content --></form>
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 with generic-search
What is the motivation / use case for changing the behavior?
Environment
Angular version: 7.x
Stark version: 10.x
Others:
The text was updated successfully, but these errors were encountered:
When press Enter key now the search is trigger
Braking Change:
The Components implementing
`StarkSearchFormComponent` must implement `submitEvent`
In the component template in the <form > tag
`(ngSubmit)="submitEvent.next()" and add `<button [hidden]="true" type="submit"></button>`
ISSUES CLOSED: NationalBankBelgium#3116
mhenkens
added a commit
to mhenkens/stark
that referenced
this issue
Sep 15, 2022
When press Enter key now the search is trigger
Braking Change:
The Components
implementing
`StarkSearchFormComponent` must implement `submitEvent`
In the component template in
the <form > tag
`(ngSubmit)="submitEvent.next()" and add `<button [hidden]="true"
type="submit"></button>`
ISSUES CLOSED: NationalBankBelgium#3116
When press Enter key now the search is trigger
Braking Change:
The Components
implementing
`StarkSearchFormComponent` must implement `submitEvent`
In the component template in
the <form > tag
`(ngSubmit)="submitEvent.next()" and add `<button [hidden]="true"
type="submit"></button>`
ISSUES CLOSED: NationalBankBelgium#3116
mhenkens
added a commit
to mhenkens/stark
that referenced
this issue
Sep 19, 2022
When press Enter key now the search is trigger
Braking Change:
The Components
implementing
`StarkSearchFormComponent` must implement `submitEvent`
In the component template in
the <form > tag
`(ngSubmit)="submitEvent.next()" and add `<button [hidden]="true"
type="submit"></button>`
ISSUES CLOSED: NationalBankBelgium#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: