We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8372085 commit 89e339eCopy full SHA for 89e339e
1 file changed
packages/ui-components/src/Common/Select/StatelessSelect/index.tsx
@@ -75,14 +75,17 @@ const StatelessSelect = <T extends string>({
75
aria-label={ariaLabel}
76
aria-disabled={disabled}
77
>
78
- {currentItem ? (
79
- <span className={styles.selectedValue}>
80
- {currentItem.iconImage}
81
- <span>{currentItem.label}</span>
82
- </span>
83
- ) : (
84
- <span className={styles.placeholder}>{placeholder}</span>
85
- )}
+ <>
+ {currentItem && (
+ <span className={styles.selectedValue}>
+ {currentItem.iconImage}
+ <span>{currentItem.label}</span>
+ </span>
+ )}
+ {currentItem || (
86
+ <span className={styles.placeholder}>{placeholder}</span>
87
88
+ </>
89
<ChevronDownIcon className={styles.icon} />
90
</summary>
91
0 commit comments