diff --git a/src/OptionList.tsx b/src/OptionList.tsx index 09e39bd65..22fb4e7b3 100644 --- a/src/OptionList.tsx +++ b/src/OptionList.tsx @@ -120,7 +120,7 @@ const OptionList: React.ForwardRefRenderFunction rawValues.has(value) && mode !== 'combobox', - [mode, [...rawValues].toString()], + [mode, [...rawValues].toString(), rawValues.size], ); // Auto scroll to item position in single mode diff --git a/tests/Multiple.test.tsx b/tests/Multiple.test.tsx index ea143a831..8ef15bf49 100644 --- a/tests/Multiple.test.tsx +++ b/tests/Multiple.test.tsx @@ -600,5 +600,25 @@ describe('Select.Multiple', () => { expect(errSpy).not.toHaveBeenCalled(); errSpy.mockRestore(); }); + + it('selected icon should show when value is empty', () => { + const wrapper = mount( +