Skip to content

Commit 443a63a

Browse files
srt32keithamus
andauthored
Update src/auto-check-element.ts
Co-authored-by: Keith Cirkel <[email protected]>
1 parent 03e00a7 commit 443a63a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/auto-check-element.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ function setLoadingState(event: Event) {
198198
const state = states.get(autoCheckElement)
199199

200200
// If some attributes are missing we want to exit early and make sure that the element is valid.
201-
if (!src || (isHttpPost && !csrf) || !state) {
201+
if (!src || (this.httpMethod == 'POST' && !csrf) || !state) {
202202
return
203203
}
204204

0 commit comments

Comments
 (0)