From b3c5e96395b14a99c2d6209d83e0dbe0f51313f6 Mon Sep 17 00:00:00 2001 From: daniel tygel Date: Fri, 16 Oct 2020 11:01:35 -0300 Subject: [PATCH] PR to fix #212 --- lib/sectioned-multi-select.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/sectioned-multi-select.js b/lib/sectioned-multi-select.js index 83f5b93..10a3191 100644 --- a/lib/sectioned-multi-select.js +++ b/lib/sectioned-multi-select.js @@ -400,8 +400,7 @@ class SectionedMultiSelect extends PureComponent { if (!single && alwaysShowSelectText) { label = selectText - } - if (!selectedItems || selectedItems.length === 0) { + } else if (!selectedItems || selectedItems.length === 0) { label = selectText } else if (single || selectedItems.length === 1) { const item = selectedItems[0]