Skip to content

Commit

Permalink
fix sending values of select tags with GET method
Browse files Browse the repository at this point in the history
  • Loading branch information
gmrchk committed Nov 2, 2018
1 parent 2907038 commit c4f24d9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion dist/swup.js
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,7 @@ var Swup = function () {
value: function linkClickHandler(event) {
// no control key pressed
if (!event.metaKey) {
// index of pressed button needs to be checked because Firefox triggers click on all mouse buttons
if (event.button === 0) {
this.triggerEvent('clickLink', event);
var link = new _Link2.default();
Expand Down Expand Up @@ -646,7 +647,7 @@ var Swup = function () {
} else {
// create base url
var url = link.getAddress() || window.location.href;
var inputs = form.querySelectorAll('input');
var inputs = form.querySelectorAll('input, select');
if (url.indexOf('?') == -1) {
url += "?";
} else {
Expand Down
Loading

0 comments on commit c4f24d9

Please sign in to comment.