From 54a17cf5a298b87b9a77ecd6b192eb756dec6cc4 Mon Sep 17 00:00:00 2001 From: c3024 Date: Fri, 25 Aug 2023 00:22:10 +0530 Subject: [PATCH] disable checkbox and pressable if all are disabled --- src/components/SelectionList/BaseSelectionList.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/SelectionList/BaseSelectionList.js b/src/components/SelectionList/BaseSelectionList.js index c7244093396e..f14c3fef5d83 100644 --- a/src/components/SelectionList/BaseSelectionList.js +++ b/src/components/SelectionList/BaseSelectionList.js @@ -339,11 +339,13 @@ function BaseSelectionList({ accessibilityLabel={translate('workspace.people.selectAll')} accessibilityRole="button" accessibilityState={{checked: flattenedSections.allSelected}} + disabled={flattenedSections.allOptions.length === flattenedSections.disabledOptionsIndexes.length} > {translate('workspace.people.selectAll')}