diff --git a/src/js/controls.js b/src/js/controls.js index 3f720925..ddec6581 100644 --- a/src/js/controls.js +++ b/src/js/controls.js @@ -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 {