diff --git a/src/Selector/MultipleSelector.tsx b/src/Selector/MultipleSelector.tsx index b3426edd0..b6f385717 100644 --- a/src/Selector/MultipleSelector.tsx +++ b/src/Selector/MultipleSelector.tsx @@ -127,7 +127,7 @@ const SelectSelector: React.FC = (props) => { ) { const onMouseDown = (e: React.MouseEvent) => { onPreventMouseDown(e); - onToggleOpen(true); + onToggleOpen(!open); }; return ( diff --git a/tests/Tags.test.tsx b/tests/Tags.test.tsx index 0902a9fd8..09127ea86 100644 --- a/tests/Tags.test.tsx +++ b/tests/Tags.test.tsx @@ -295,6 +295,9 @@ describe('Select.Tags', () => { expect(wrapper.find('span.A').text()).toBe('AA'); expect(onTagRender).toHaveBeenCalled(); expect(wrapper.find('.customize-tag')).toHaveLength(3); + + wrapper.find('span.A').simulate('mousedown'); + expectOpen(wrapper, false); }); it('disabled', () => {