Merge pull request #1070 from mimse/fix_condition_check

Fixed condition check
This commit is contained in:
Sam Potts
2018-06-27 22:47:42 +10:00
committed by GitHub

2
src/js/controls.js vendored
View File

@ -187,7 +187,7 @@ const controls = {
} }
if ('class' in attributes) { if ('class' in attributes) {
if (attributes.class.includes(this.config.classNames.control)) { if (!attributes.class.includes(this.config.classNames.control)) {
attributes.class += ` ${this.config.classNames.control}`; attributes.class += ` ${this.config.classNames.control}`;
} }
} else { } else {