angular / components

Component infrastructure and Material Design components for Angular
https://material.angular.io
MIT License
24.18k stars 6.68k forks source link

bug(material): material input autocomplete chrome #24348

Open PlisMikhail opened 2 years ago

PlisMikhail commented 2 years ago

Is this a regression?

The previous version in which this bug was not present was

No response

Description

When material input with form control is filled with autocompletion and then control disabled - text color css is not applied and text is stays black, not changes to grey as it should be. If control is reseted with disabling option - everything works fine. Works same with angular 8 and angular 13.

Reproduction

Steps to reproduce:

  1. use links https://stackblitz.com/edit/angular-material-v13-batya95?file=src%2Fapp%2Fexample.component.html https://stackblitz.com/edit/angular-8-material-bug?file=app/example.component.html
  2. autocomplete inputs
  3. press buttons

Expected Behavior

control.disable() should disable input and text in disabled input should become grey, indicating that input is disabled

Actual Behavior

control.disable() disables input but text remain unchanged and stays black

Environment

Dima-Astreyko commented 2 years ago

+1