8000 forms: update required validator when input is autofilled · Issue #30616 · angular/angular · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
8000
Skip to content
forms: update required validator when input is autofilled #30616
Open
@mmalerba

Description

@mmalerba

🚀 feature request

Relevant Package

This feature request is for @angular/forms

Description

The RequiredValidator does not update its validation status when an input is autofilled in Chrome. This is problematic for users who set up a required username and password input and then conditionally enable the submit button when the inputs are valid. The user sees:

  1. Page loads
  2. Inputs are autofilled with username and password
  3. Submit button is still disabled.

This issue has been filed in the past on the components repo: angular/components#3414, though the change would really have to happen in @angular/forms.

Describe the solution you'd like

@angular/cdk has an AutofillMonitor that could be moved to @angular/forms and used to detect when an input is autofilled.

Describe alternatives you've considered

It is possible to monkey patch a solution, as @kherock demonstrated on the components issue.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0