Skip to content

Commit

Permalink
fix: use React Textbox for ComboboxInput
Browse files Browse the repository at this point in the history
  • Loading branch information
Yolijn committed Dec 23, 2024
1 parent c59ab2a commit 34ec46e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export {
SecondaryActionButton,
UnorderedList,
UnorderedListItem,
Textbox,
} from '@utrecht/component-library-react/dist/css-module'

export { RadioGroup } from '@utrecht/radio-group-react'
Expand Down
4 changes: 2 additions & 2 deletions src/components/ui/AddressCombobox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import React, {
} from 'react'
import { useConfig } from '@/hooks/useConfig'
import { getSuggestedAddresses } from '@/services/location/address'
import { Listbox, ListboxOption, StatusText } from '@/components/index'
import { Listbox, ListboxOption, StatusText, Textbox } from '@/components/index'
// Import the Select Combobox component for the side-effects of injecting CSS
// for related components, such as Textbox and Listbox.
import '@utrecht/select-combobox-react/dist/css'
Expand Down Expand Up @@ -106,7 +106,7 @@ export const AddressCombobox = ({
<Combobox value={formState.address} onChange={onChangeAddress}>
<ComboboxInput
aria-label="Adres"
className={'utrecht-textbox utrecht-textbox--html-input'}
as={Textbox}
displayValue={(address: any) => address?.weergave_naam}
name="address"
onChange={(event) => setQuery(event.target.value)}
Expand Down

0 comments on commit 34ec46e

Please sign in to comment.