From 50d37024eed1e14e272eba032d89f73bff5ea6bf Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Wed, 12 Apr 2023 09:03:00 +0200 Subject: [PATCH] fix(material/form-field): outline not updated if required state changes Fixes that the form field outline wasn't being updated when the `required` state of the underlying control changes. Also adds some logic to reduce the amount of times we measure the label on init. Fixes #26848. --- src/material/form-field/form-field.html | 4 ++-- src/material/form-field/form-field.ts | 24 ++++++++++++++++--- tools/public_api_guard/material/form-field.md | 2 ++ 3 files changed, 25 insertions(+), 5 deletions(-) diff --git a/src/material/form-field/form-field.html b/src/material/form-field/form-field.html index 3c745e81d962..aa53c1dfd3af 100644 --- a/src/material/form-field/form-field.html +++ b/src/material/form-field/form-field.html @@ -17,8 +17,8 @@