Skip to content

Commit

Permalink
Use getAttribute instead of magic getter for form actions
Browse files Browse the repository at this point in the history
  • Loading branch information
AugustMiller committed Sep 21, 2019
1 parent a9ee656 commit 75ef61f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/SwupFormsPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ var FormPlugin = function (_Plugin) {
if (!event.metaKey) {
var form = event.target;
var formData = new FormData(form);
var link = new _helpers.Link(form.action);
var link = new _helpers.Link(form.getAttribute('action'));

// fomr
swup.triggerEvent('submitForm', event);
Expand Down
Loading

0 comments on commit 75ef61f

Please sign in to comment.