From 35763a8e616c499532e7c46655a3d362ab6526d8 Mon Sep 17 00:00:00 2001 From: Sumanth Nadigadda Date: Tue, 5 Jul 2022 14:27:48 +0530 Subject: [PATCH] invoking check box toggle state, only when the check box is enabled. --- .../List/LeftVariable/ListLeftVariableCheckboxBodyText.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MVMCoreUI/Atomic/Molecules/DesignedComponents/List/LeftVariable/ListLeftVariableCheckboxBodyText.swift b/MVMCoreUI/Atomic/Molecules/DesignedComponents/List/LeftVariable/ListLeftVariableCheckboxBodyText.swift index 83f0469f..1d173406 100644 --- a/MVMCoreUI/Atomic/Molecules/DesignedComponents/List/LeftVariable/ListLeftVariableCheckboxBodyText.swift +++ b/MVMCoreUI/Atomic/Molecules/DesignedComponents/List/LeftVariable/ListLeftVariableCheckboxBodyText.swift @@ -76,7 +76,9 @@ } public override func didSelectCell(at index: IndexPath, delegateObject: MVMCoreUIDelegateObject?, additionalData: [AnyHashable: Any]?) { - checkbox.isSelected.toggle() + if checkbox.isEnabled { + checkbox.isSelected.toggle() + } } //----------------------------------------------------