Fixed condition check
If class includes "control" it will add it again.
This commit is contained in:
parent
c41bb657ac
commit
de9b53045a
2
src/js/controls.js
vendored
2
src/js/controls.js
vendored
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user