diff --git a/src/auto-check-element.ts b/src/auto-check-element.ts index dc1d3bc..defe2c4 100644 --- a/src/auto-check-element.ts +++ b/src/auto-check-element.ts @@ -198,7 +198,7 @@ function setLoadingState(event: Event) { 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 == 'POST' && !csrf) || !state) { return }