-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Closed
Closed
Copy link
Labels
package: core@ionic/core package@ionic/core packagetype: buga confirmed bug reporta confirmed bug report
Description
Bug Report
Ionic version:
[ ] 4.x
[x] 5.x
Current behavior:
In reactive Angular forms, the ion-items within an ion-input, the highlights are marked in red when they have not yet been touched.
Expected behavior:
They should be blue until they are not touched, even though the validation of required giving an error.
Steps to reproduce:
Create a reactive form group and add the required validation
Related code:
import { ReactiveFormsModule } from '@angular/forms';
imports: [
ReactiveFormsModule,
...
],
formGroup: FormGroup;
constructor(public formBuilder: FormBuilder) {
this.formGroup = this.formBuilder.group({
text: [
"",
[Validators.required]
]
});
}
<form [formGroup]="formGroup">
<ion-item>
<ion-label floating>Text</ion-label>
<ion-input type="text" formControlName="text"></ion-input>
</ion-item>
</form>
Ionic info:
Ionic:
Ionic CLI : 6.10.1
Ionic Framework : @ionic/angular 5.2.2
@angular-devkit/build-angular : 0.1000.0
@angular-devkit/schematics : 8.3.25
@angular/cli : 10.0.0
@ionic/angular-toolkit : 2.2.0
Capacitor:
Capacitor CLI : 2.2.0
@capacitor/core : 2.2.0
Utility:
cordova-res : not installed
native-run : not installed
System:
NodeJS : v14.3.0
npm : 6.14.5
OS : Windows 10
magbauti
Metadata
Metadata
Assignees
Labels
package: core@ionic/core package@ionic/core packagetype: buga confirmed bug reporta confirmed bug report