diff --git a/src/SelectInput/Content/SingleContent.tsx b/src/SelectInput/Content/SingleContent.tsx index 3a731a38..89e6b747 100644 --- a/src/SelectInput/Content/SingleContent.tsx +++ b/src/SelectInput/Content/SingleContent.tsx @@ -88,7 +88,7 @@ const SingleContent = React.forwardRef(
{ expect(container.querySelector('.rc-select-content-has-option-style')).toBeTruthy(); }); + it('should not add -content-has-value className when value is empty string', () => { + const { container } = render( + , + ); + expect(container.querySelector('.rc-select-content-has-value')).toBeFalsy(); + }); + it('should default select the right option', () => { const { container } = render(