Fix form input label id for tags
This commit is contained in:
parent
a998880c8d
commit
49f2102913
@ -93,6 +93,7 @@ export default function FieldSetWithStatus({
|
||||
</select>
|
||||
: tagOptions
|
||||
? <TagInput
|
||||
id={id}
|
||||
name={id}
|
||||
value={value}
|
||||
options={tagOptions}
|
||||
|
||||
@ -10,6 +10,7 @@ const ARIA_ID_TAG_CONTROL = 'tag-control';
|
||||
const ARIA_ID_TAG_OPTIONS = 'tag-options';
|
||||
|
||||
export default function TagInput({
|
||||
id,
|
||||
name,
|
||||
value = '',
|
||||
options = [],
|
||||
@ -17,6 +18,7 @@ export default function TagInput({
|
||||
className,
|
||||
readOnly,
|
||||
}: {
|
||||
id?: string
|
||||
name: string
|
||||
value?: string
|
||||
options?: AnnotatedTag[]
|
||||
@ -249,6 +251,7 @@ export default function TagInput({
|
||||
{option}
|
||||
</span>)}
|
||||
<input
|
||||
id={id}
|
||||
ref={inputRef}
|
||||
type="text"
|
||||
className={clsx(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user