diff options
author | Albin Larsson <mail@albinlarsson.com> | 2017-09-27 02:34:23 +0200 |
---|---|---|
committer | Albin Larsson <mail@albinlarsson.com> | 2017-09-27 02:34:23 +0200 |
commit | ec091266aa1cc39a59ecd8436afd8a3304990607 (patch) | |
tree | d0b6ffe2d35037f22aace61316f21ccd55152ca0 /src | |
parent | ad105877ed4223349484986091e6df547933fceb (diff) | |
download | plyr-ec091266aa1cc39a59ecd8436afd8a3304990607.tar.lz plyr-ec091266aa1cc39a59ecd8436afd8a3304990607.tar.xz plyr-ec091266aa1cc39a59ecd8436afd8a3304990607.zip |
Prevent buttons from submitting form
Diffstat (limited to 'src')
-rw-r--r-- | src/js/plyr.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/js/plyr.js b/src/js/plyr.js index ebf0d444..ae1755a0 100644 --- a/src/js/plyr.js +++ b/src/js/plyr.js @@ -1511,6 +1511,10 @@ attributes = {}; } + if (!('type' in attributes)) { + attributes.type = 'button'; + } + if ('class' in attributes) { if (attributes.class.indexOf(player.config.classNames.control) === -1) { attributes.class += ' ' + player.config.classNames.control; |