Skip to content

Commit

Permalink
Allow for a missing submitter
Browse files Browse the repository at this point in the history
  • Loading branch information
imacrayon committed Jan 13, 2024
1 parent abbf0fc commit 1486a27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"HTML",
"AlpineJS"
],
"version": "0.4.2",
"version": "0.4.3",
"license": "MIT",
"author": "Christian Taylor",
"homepage": "https://alpine-ajax.js.org",
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ function navigateRequest(link) {

function listenForSubmit(el, config) {
let handler = async (event) => {
if (event.submitter.hasAttribute('formnoajax')) {
if (event.submitter && event.submitter.hasAttribute('formnoajax')) {
return;
}

Expand Down

0 comments on commit 1486a27

Please sign in to comment.