@@ -92,6 +92,7 @@ const SelectSelector: React.FC<SelectorProps> = (props) => {
92
92
// ===================== Render ======================
93
93
// >>> Render Selector Node. Includes Item & Rest
94
94
function defaultRenderSelector (
95
+ title : React . ReactNode ,
95
96
content : React . ReactNode ,
96
97
itemDisabled : boolean ,
97
98
closable ?: boolean ,
@@ -103,9 +104,7 @@ const SelectSelector: React.FC<SelectorProps> = (props) => {
103
104
[ `${ selectionPrefixCls } -item-disabled` ] : itemDisabled ,
104
105
} ) }
105
106
title = {
106
- typeof content === 'string' || typeof content === 'number'
107
- ? content . toString ( )
108
- : undefined
107
+ typeof title === 'string' || typeof title === 'number' ? title . toString ( ) : undefined
109
108
}
110
109
>
111
110
< span className = { `${ selectionPrefixCls } -item-content` } > { content } </ span >
@@ -170,7 +169,7 @@ const SelectSelector: React.FC<SelectorProps> = (props) => {
170
169
171
170
return typeof tagRender === 'function'
172
171
? customizeRenderSelector ( value , displayLabel , itemDisabled , closable , onClose )
173
- : defaultRenderSelector ( displayLabel , itemDisabled , closable , onClose ) ;
172
+ : defaultRenderSelector ( label , displayLabel , itemDisabled , closable , onClose ) ;
174
173
}
175
174
176
175
function renderRest ( omittedValues : DisplayLabelValueType [ ] ) {
@@ -179,7 +178,7 @@ const SelectSelector: React.FC<SelectorProps> = (props) => {
179
178
? maxTagPlaceholder ( omittedValues )
180
179
: maxTagPlaceholder ;
181
180
182
- return defaultRenderSelector ( content , false ) ;
181
+ return defaultRenderSelector ( content , content , false ) ;
183
182
}
184
183
185
184
// >>> Input Node
0 commit comments