From 9482b6b053ce9b2a7e41864207fca4155f622311 Mon Sep 17 00:00:00 2001 From: Simon Taranto Date: Fri, 24 May 2024 13:27:44 -0400 Subject: [PATCH] Update src/auto-check-element.ts Co-authored-by: Keith Cirkel --- src/auto-check-element.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/auto-check-element.ts b/src/auto-check-element.ts index e94eba8..58ee755 100644 --- a/src/auto-check-element.ts +++ b/src/auto-check-element.ts @@ -248,7 +248,7 @@ async function check(autoCheckElement: AutoCheckElement) { const state = states.get(autoCheckElement) // If some attributes are missing we want to exit early and make sure that the element is valid. - if (!src || (isHttpPost && !csrf) || !state) { + if (!src || (this.httpMethod && !csrf) || !state) { if (autoCheckElement.required) { input.setCustomValidity('') }