Skip to content

Commit cab5c0f

Browse files
committed
fix: set disableContentStyling incorrectly
1 parent 93d529f commit cab5c0f

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

src/select/parts/item.tsx

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ const Item = (
115115

116116
return (
117117
<SelectableItem
118-
disableContentStyling={!!renderOption}
118+
disableContentStyling={!!renderResult}
119119
ariaSelected={Boolean(selected)}
120120
selected={selected}
121121
isNextSelected={isNextSelected}
@@ -143,16 +143,14 @@ const Item = (
143143
<CheckboxIcon checked={selected || false} disabled={option.disabled} />
144144
</div>
145145
)}
146-
{
147-
<Option
148-
customContent={renderResult}
149-
option={{ ...wrappedOption, disabled }}
150-
highlightedOption={highlighted}
151-
selectedOption={selected}
152-
highlightText={filteringValue}
153-
isGroupOption={isParent}
154-
/>
155-
}
146+
<Option
147+
customContent={renderResult}
148+
option={{ ...wrappedOption, disabled }}
149+
highlightedOption={highlighted}
150+
selectedOption={selected}
151+
highlightText={filteringValue}
152+
isGroupOption={isParent}
153+
/>
156154
{!renderResult && !hasCheckbox && !isParent && selected && (
157155
<div className={styles['selected-icon']}>
158156
<InternalIcon name="check" />

0 commit comments

Comments
 (0)