Fixed condition check

If class includes "control" it will add it again.
This commit is contained in:
Morten Vestergaard Hansen 2018-06-27 14:33:51 +02:00 committed by GitHub
parent c41bb657ac
commit de9b53045a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
src/js/controls.js vendored
View File

@ -181,7 +181,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 {