diff --git a/src/SelectInput/Content/Placeholder.tsx b/src/SelectInput/Content/Placeholder.tsx index fec17d9e..4fba50f6 100644 --- a/src/SelectInput/Content/Placeholder.tsx +++ b/src/SelectInput/Content/Placeholder.tsx @@ -20,7 +20,7 @@ export default function Placeholder(props: PlaceholderProps) {
diff --git a/tests/__snapshots__/Combobox.test.tsx.snap b/tests/__snapshots__/Combobox.test.tsx.snap index 8e75469f..4e4b3601 100644 --- a/tests/__snapshots__/Combobox.test.tsx.snap +++ b/tests/__snapshots__/Combobox.test.tsx.snap @@ -9,7 +9,6 @@ exports[`Select.Combobox renders controlled correctly 1`] = ` >
Search
@@ -37,7 +36,6 @@ exports[`Select.Combobox renders correctly 1`] = ` >
Search
diff --git a/tests/__snapshots__/ssr.test.tsx.snap b/tests/__snapshots__/ssr.test.tsx.snap index 9f1c6c0f..de7ade80 100644 --- a/tests/__snapshots__/ssr.test.tsx.snap +++ b/tests/__snapshots__/ssr.test.tsx.snap @@ -1,3 +1,3 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Select.SSR should work 1`] = `"
"`; +exports[`Select.SSR should work 1`] = `"
"`; diff --git a/tests/placeholder.test.tsx b/tests/placeholder.test.tsx index ccca1c57..23f0b40b 100644 --- a/tests/placeholder.test.tsx +++ b/tests/placeholder.test.tsx @@ -15,6 +15,19 @@ describe('Select placeholder', () => { }); }); + it('should not force placeholder visible when select is hidden', () => { + const { container } = render(); expect(container.querySelector('.rc-select-placeholder')).toBeTruthy();