From 30c15a8e78b2ea4fa7b7b26f53c76f9c22cbe281 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=9D=91=BE=F0=9D=92=96=F0=9D=92=99=F0=9D=92=89?= Date: Tue, 20 Jan 2026 15:28:00 +0800 Subject: [PATCH 1/2] fix: refine placeholder rendering logic in MultipleContent component bg: https://github.com/react-component/select/pull/1166/changes#r2707079879 fix: https://github.com/ant-design/ant-design/issues/56587 --- src/SelectInput/Content/MultipleContent.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SelectInput/Content/MultipleContent.tsx b/src/SelectInput/Content/MultipleContent.tsx index 598bb8b6..66ed4551 100644 --- a/src/SelectInput/Content/MultipleContent.tsx +++ b/src/SelectInput/Content/MultipleContent.tsx @@ -200,7 +200,7 @@ export default React.forwardRef(function M prefixCls={`${prefixCls}-content`} className={classNames?.content} style={styles?.content} - prefix={!displayValues.length && (!searchValue || !triggerOpen) ? : null} + prefix={!displayValues.length && !inputValue && } data={displayValues} renderItem={renderItem} renderRest={renderRest} From d0dcbaad4833d39911f11a66ca631902736855aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=9D=91=BE=F0=9D=92=96=F0=9D=92=99=F0=9D=92=89?= Date: Tue, 20 Jan 2026 16:04:54 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A7=AA=20add=20unit=20test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/Tags.test.tsx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/Tags.test.tsx b/tests/Tags.test.tsx index 00c47322..99e3d295 100644 --- a/tests/Tags.test.tsx +++ b/tests/Tags.test.tsx @@ -574,4 +574,14 @@ describe('Select.Tags', () => { }); expect(onChange).not.toBeCalled(); }); + + // https://github.com/ant-design/ant-design/issues/56587 + it('should not display placeholder', () => { + const { container } = render(