Skip to content

Commit 9482b6b

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

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
@@ -248,7 +248,7 @@ async function check(autoCheckElement: AutoCheckElement) {
248248
const state = states.get(autoCheckElement)
249249

250250
// If some attributes are missing we want to exit early and make sure that the element is valid.
251-
if (!src || (isHttpPost && !csrf) || !state) {
251+
if (!src || (this.httpMethod && !csrf) || !state) {
252252
if (autoCheckElement.required) {
253253
input.setCustomValidity('')
254254
}

0 commit comments

Comments
 (0)