@@ -33,8 +33,8 @@ import { ConditionalWrap } from '@Common/Helper'
33
33
import Tippy from '@tippyjs/react'
34
34
import { getCommonSelectStyle } from './utils'
35
35
import {
36
- MultiValueLabel ,
37
- MultiValueRemove ,
36
+ SelectPickerMultiValueLabel ,
37
+ SelectPickerMultiValueRemove ,
38
38
SelectPickerClearIndicator ,
39
39
SelectPickerControl ,
40
40
SelectPickerDropdownIndicator ,
@@ -183,6 +183,7 @@ const SelectPicker = forwardRef(
183
183
[ error , selectSize , menuSize , variant , isGroupHeadingSelectable ] ,
184
184
)
185
185
186
+ // Used to show the create new option for creatable select
186
187
const isValidNewOption = ( inputValue : string ) => isCreatable && ! ! inputValue ?. trim ( )
187
188
188
189
const renderControl = useCallback (
@@ -226,7 +227,7 @@ const SelectPicker = forwardRef(
226
227
)
227
228
228
229
const renderMultiValueLabel = ( multiValueLabelProps : MultiValueProps < SelectPickerOptionType , true > ) => (
229
- < MultiValueLabel { ...multiValueLabelProps } getIsOptionValid = { getIsOptionValid } />
230
+ < SelectPickerMultiValueLabel { ...multiValueLabelProps } getIsOptionValid = { getIsOptionValid } />
230
231
)
231
232
232
233
const renderGroupHeading = useCallback (
@@ -284,7 +285,7 @@ const SelectPicker = forwardRef(
284
285
ClearIndicator : SelectPickerClearIndicator ,
285
286
ValueContainer : renderValueContainer ,
286
287
MultiValueLabel : renderMultiValueLabel ,
287
- MultiValueRemove,
288
+ MultiValueRemove : SelectPickerMultiValueRemove ,
288
289
GroupHeading : renderGroupHeading ,
289
290
} }
290
291
styles = { selectStyles }
0 commit comments