Prevent buttons from submitting form
This commit is contained in:
parent
ad105877ed
commit
ec091266aa
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user