File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
pages/search/components/FilterBar Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -18,11 +18,11 @@ const InputRow: React.FC<Props> = props => {
1818 { props . coordinates . map ( ( { label, ...field } , index ) => (
1919 < div key = { index } >
2020 { label !== undefined && (
21- < label className = "block font-bold mb-1" htmlFor = { inputId } >
21+ < label className = "block font-bold mb-1" htmlFor = { ` ${ inputId } - ${ index } ` } >
2222 { label }
2323 </ label >
2424 ) }
25- < input className = "input" id = { inputId } { ...field } readOnly />
25+ < input className = "input" id = { ` ${ inputId } - ${ index } ` } { ...field } readOnly />
2626 </ div >
2727 ) ) }
2828 </ div >
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ const SelectRow: React.FC<Props> = props => {
2020 return (
2121 < div className = "w-full mb-5" >
2222 { label !== undefined && (
23- < label className = "block font-bold mb-1" htmlFor = { inputId } >
23+ < label className = "block font-bold mb-1" htmlFor = { field . inputId ?? inputId } >
2424 { label }
2525 { field . required === true && (
2626 < >
@@ -33,6 +33,7 @@ const SelectRow: React.FC<Props> = props => {
3333 </ label >
3434 ) }
3535 < SelectableDropdown
36+ inputId = { field . inputId ?? inputId }
3637 { ...field }
3738 { ...( hasError && {
3839 [ 'aria-invalid' ] : true ,
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import { useIntl } from 'react-intl';
44import { theme } from '../../../../../../tailwind.config' ;
55
66export interface SelectableDropdownProps {
7+ inputId ?: string ;
78 name : string ;
89 options : Option [ ] ;
910 placeholder : string ;
You can’t perform that action at this time.
0 commit comments