Skip to content

Commit 8ec8e7d

Browse files
committed
fix(useSingle): update placeholder logic
1 parent a95f2db commit 8ec8e7d

File tree

3 files changed

+206
-119
lines changed

3 files changed

+206
-119
lines changed

packages/components/select-input/useSingle.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export default function useSingle(props: TdSelectInputProps) {
128128
};
129129

130130
const displayedPlaceholder = () => {
131-
if (popupVisible && !showLabelNode) {
131+
if (popupVisible && singleValueDisplay && !showLabelNode) {
132132
return singleValueDisplay;
133133
}
134134
if (showLabelNode) return '';

0 commit comments

Comments
 (0)