diff --git a/app/ui/lib/Combobox.tsx b/app/ui/lib/Combobox.tsx index d49237a016..a9c8a29e9e 100644 --- a/app/ui/lib/Combobox.tsx +++ b/app/ui/lib/Combobox.tsx @@ -16,7 +16,7 @@ import { } from '@headlessui/react' import cn from 'classnames' import { matchSorter } from 'match-sorter' -import { useState } from 'react' +import { useId, useState } from 'react' import { SelectArrows6Icon } from '@oxide/design-system/icons/react' @@ -81,7 +81,7 @@ export const Combobox = ({ }) const zIndex = usePopoverZIndex() - + const id = useId() return ( <> {label && ( - // TODO: FieldLabel needs a real ID
- {description && {description}} + {description && ( + {description} + )}
)} ({ const noItems = !isLoading && items.length === 0 const isDisabled = disabled || noItems const zIndex = usePopoverZIndex() - + const id = useId() return (
({ {label && (
- {description && {description}} + {description && ( + {description} + )}
)}