Skip to content

Commit

Permalink
Update src/auto-check-element.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Keith Cirkel <[email protected]>
  • Loading branch information
srt32 and keithamus authored May 24, 2024
1 parent af4e0a1 commit 9482b6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/auto-check-element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {

Check failure on line 251 in src/auto-check-element.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected 'this'
if (autoCheckElement.required) {
input.setCustomValidity('')
}
Expand Down

0 comments on commit 9482b6b

Please sign in to comment.