Skip to content

Commit e8fef17

Browse files
committed
fix: remove duplicated listbox from MultiSelect
1 parent b5b4b9e commit e8fef17

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

packages/fuselage/src/components/MultiSelect/MultiSelect.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,6 @@ const MultiSelect = forwardRef<HTMLInputElement, MultiSelectProps>(
240240
multiple
241241
filter={filter}
242242
renderItem={renderItem || CheckOption}
243-
role='listbox'
244243
id={listboxId}
245244
options={filteredOptions}
246245
onSelect={internalChanged}

packages/fuselage/src/components/Options/Options.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ const Options = forwardRef<HTMLElement, OptionsProps>(function Options(
5151
renderItem: OptionComponent = Option,
5252
onSelect,
5353
customEmpty,
54+
id,
5455
...props
5556
},
5657
ref,
@@ -122,6 +123,7 @@ const Options = forwardRef<HTMLElement, OptionsProps>(function Options(
122123
is='ol'
123124
aria-multiselectable={multiple || true}
124125
role='listbox'
126+
id={id}
125127
aria-activedescendant={
126128
options?.[cursor]?.[0]
127129
? String(options?.[cursor]?.[0])

0 commit comments

Comments
 (0)