Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

c-form-feedback component not displayed with cFormPassword input #237

Open
Assignees
xidedix
@bernik1980

Description

@bernik1980

I have the following input group, to let the user specify a password:

<c-input-group>  <input cFormControl cFormPassword formControlName="password" [valid]="isFormControlValid('password')" />  <c-form-feedback [valid]="false">Please specify a valid password.</c-form-feedback></c-input-group>

isFormControlValid() just checks if the control is valid and if it was touched.

The related formGroup looks like this:

itemForm = new FormGroup({  password: new FormControl('', [Validators.required, Validators.minLength(8)])})

If the input of the user is invalid (no input or less then 8 chars), the border of the input becomes red (which is of course correct), but the c-form-feedback is not displayed.

If i remove the cFormPassword directive, the c-form-feedback is displayed.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp