From 37d29174f3b6bc9c0f3b2abfbcd55197c4bee6e2 Mon Sep 17 00:00:00 2001 From: djmaze Date: Fri, 10 Sep 2021 15:19:37 +0200 Subject: [PATCH] Bugfix: checkbox component cleanup error --- dev/Component/AbstractCheckbox.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dev/Component/AbstractCheckbox.js b/dev/Component/AbstractCheckbox.js index 67e13b692..0bf84f65d 100644 --- a/dev/Component/AbstractCheckbox.js +++ b/dev/Component/AbstractCheckbox.js @@ -21,9 +21,7 @@ class AbstractCheckbox extends AbstractComponent { } click() { - if (this.enable() && !this.disable()) { - this.value(!this.value()); - } + this.enable() && this.value(!this.value()); } }