From de9b53045aecb34cd6244327f9ccb7116b617e8b Mon Sep 17 00:00:00 2001 From: Morten Vestergaard Hansen Date: Wed, 27 Jun 2018 14:33:51 +0200 Subject: [PATCH] Fixed condition check If class includes "control" it will add it again. --- src/js/controls.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {