We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cde2e8 commit a8f6b09Copy full SHA for a8f6b09
src/auto-check-element.ts
@@ -244,7 +244,7 @@ async function check(autoCheckElement: AutoCheckElement) {
244
const state = states.get(autoCheckElement)
245
246
// If some attributes are missing we want to exit early and make sure that the element is valid.
247
- if (!src || (httpMethod && !csrf) || !state) {
+ if (!src || (httpMethod === 'POST' && !csrf) || !state) {
248
if (autoCheckElement.required) {
249
input.setCustomValidity('')
250
}
0 commit comments