Skip to content

Commit 03101e3

Browse files
committed
fix(ComboBox): support for legacy field * 6
1 parent 42065a8 commit 03101e3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/fields/ComboBox/ComboBox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export interface CubeComboBoxProps<T>
108108
>,
109109
AriaComboBoxProps<T>,
110110
AriaTextFieldProps {
111-
defaultSelectedKey?: string;
111+
defaultSelectedKey?: string | null;
112112
selectedKey?: string | null;
113113
onSelectionChange?: (selectedKey: string | null) => void;
114114
onInputChange?: (inputValue: string) => void;

src/components/fields/TextInputMapper/TextInputMapper.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ function TextInputMapperInput(props: CubeTextInputMapperInputProps) {
347347
aria-label={placeholder}
348348
placeholder={placeholder}
349349
onInputChange={onChange}
350-
onSelectionChange={onSelectionChange}
350+
onSelectionChange={(val) => onSelectionChange(val ?? '')}
351351
>
352352
{(options ?? []).map((option) => (
353353
<ComboBox.Item key={option}>{option}</ComboBox.Item>

0 commit comments

Comments
 (0)