diff options
author | Sam Potts <sam@selz.com> | 2017-09-27 23:33:28 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-27 23:33:28 +1000 |
commit | f89ddb2f1b9917aeb2f93f3645796276c4c132fa (patch) | |
tree | 476bc02e17f2a9f87ac5c01a41984020a32903ea /src/js/plyr.js | |
parent | 2e5cc272e32495c0baaaebbfc83dfb9b0e1b11d5 (diff) | |
parent | ec091266aa1cc39a59ecd8436afd8a3304990607 (diff) | |
download | plyr-f89ddb2f1b9917aeb2f93f3645796276c4c132fa.tar.lz plyr-f89ddb2f1b9917aeb2f93f3645796276c4c132fa.tar.xz plyr-f89ddb2f1b9917aeb2f93f3645796276c4c132fa.zip |
Merge pull request #669 from friday/fix/prevent-buttons-from-submitting-form
Prevent buttons from submitting form (v3)
Diffstat (limited to 'src/js/plyr.js')
-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 eae31494..8e98caf4 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; |