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
commit 4f5152f526
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
src/js/controls.js vendored
View File

@ -187,7 +187,7 @@ const controls = {
}
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}`;
}
} else {