Skip to content

Commit 79a8c2f

Browse files
committed
fix: backspace should render value
1 parent 146ef31 commit 79a8c2f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Shared/Components/SelectPicker/SelectPicker.component.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ const SelectPicker = <OptionValue, IsMulti extends boolean>({
332332
menuPlacement: 'auto' as MenuPlacement,
333333
menuPosition,
334334
menuShouldScrollIntoView: true,
335-
backspaceRemovesValue: false,
335+
backspaceRemovesValue: isMulti && controlShouldRenderValue,
336336
'aria-errormessage': errorElementId,
337337
'aria-invalid': !!error,
338338
'aria-labelledby': labelId,
@@ -351,6 +351,7 @@ const SelectPicker = <OptionValue, IsMulti extends boolean>({
351351
error,
352352
labelId,
353353
shouldRenderCustomOptions,
354+
controlShouldRenderValue,
354355
],
355356
)
356357

0 commit comments

Comments
 (0)