From a5a6974decb19b5ce42020c3c7c5386a8b203d76 Mon Sep 17 00:00:00 2001 From: Elliott Marquez Date: Fri, 20 Oct 2023 18:09:32 -0700 Subject: [PATCH] fix(select): form failure no longer throws non-focusable error fixes #5078 PiperOrigin-RevId: 575361459 --- select/internal/select.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/select/internal/select.ts b/select/internal/select.ts index 937ec628a5..c5c0c73cd4 100644 --- a/select/internal/select.ts +++ b/select/internal/select.ts @@ -801,7 +801,9 @@ export abstract class Select extends LitElement { const validationMessage = this.customValidationMessage || valueMissing && this.getRequiredValidationMessage() || ''; - this.internals.setValidity({valueMissing, customError}, validationMessage); + this.internals.setValidity( + {valueMissing, customError}, validationMessage, + this.field ?? undefined); } // Returns the platform `