From 3aee945ed9bf5f91c433d569c75f85e55e3b23f9 Mon Sep 17 00:00:00 2001 From: Guo Yunhe Date: Wed, 13 Nov 2024 14:57:11 +0800 Subject: [PATCH] fix(Select): text overflow in tag mode (#51605) --- BUG_VERSIONS.json | 3 ++- components/select/style/multiple.ts | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/BUG_VERSIONS.json b/BUG_VERSIONS.json index 730055e7ac..f04929ca7b 100644 --- a/BUG_VERSIONS.json +++ b/BUG_VERSIONS.json @@ -61,5 +61,6 @@ "5.21.0": [ "https://github.com/ant-design/ant-design/issues/50960", "https://github.com/ant-design/ant-design/issues/50969" - ] + ], + "5.22.0": ["https://github.com/ant-design/ant-design/issues/51601"] } diff --git a/components/select/style/multiple.ts b/components/select/style/multiple.ts index 4a43210a87..8e3fc00a82 100644 --- a/components/select/style/multiple.ts +++ b/components/select/style/multiple.ts @@ -232,6 +232,11 @@ const genSelectionStyle = ( }, }, + [`${componentCls}-selection-wrap`]: { + width: '100%', + overflow: 'hidden', + }, + // ======================== Selections ======================== [`${componentCls}-selection-item`]: { height: multipleSelectorUnit.itemHeight,