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