Skip to content

Commit

Permalink
fix combobox attribute name
Browse files Browse the repository at this point in the history
  • Loading branch information
aswallace committed Nov 19, 2024
1 parent 4763c8c commit c61675a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/core/components/ComboBox/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const FUZZY_SEARCH_OPTIONS = {

interface Props {
className?: string;
defaultValue?: string;
selectedKey?: string;
disabled?: boolean;
label: string;
multiSelect?: boolean;
Expand Down Expand Up @@ -70,7 +70,7 @@ export default function BaseComboBox(props: Props) {
allowFreeform
caretDownButtonStyles={{ root: styles.comboBoxCaret }}
className={props?.className}
defaultValue={props?.defaultValue}
selectedKey={props?.selectedKey}
disabled={props?.disabled}
placeholder={placeholder}
label={label}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@ export default function NewAnnotationPathway(props: NewAnnotationProps) {
<>
<ComboBox
className={styles.comboBox}
defaultValue={newFieldDataType || undefined}
selectedKey={`datatype-${newFieldDataType}` || undefined}
label="Data type"
placeholder="Select a data type"
options={Object.values(AnnotationType).map((type, index) => {
options={Object.values(AnnotationType).map((type) => {
return {
key: `datatype-${index}`,
key: `datatype-${type}`,
text: type,
};
})}
Expand Down

0 comments on commit c61675a

Please sign in to comment.