-
Notifications
You must be signed in to change notification settings - Fork 188
Closed
Description
The <BasicDropdown> component includes a way to override the <BasicDropdownContent> component's id attribute:
| dropdownId?: string; |
But it's undocumented on https://ember-basic-dropdown.com/docs/api-reference. Is it safe to use? If so, it looks like there are some bugs in the {{basic-dropdown-trigger}} modifier where the default id is hard-coded:
ember-basic-dropdown/addon/modifiers/basic-dropdown-trigger.ts
Lines 68 to 69 in 3df82cf
| element.setAttribute('aria-owns', `ember-basic-dropdown-content-${dropdown.uniqueId}`); | |
| element.setAttribute('aria-controls', `ember-basic-dropdown-content-${dropdown.uniqueId}`); |
Specifying (or somehow acquiring) the id is useful in cases where focus needs to be trapped in the drop-down.
Metadata
Metadata
Assignees
Labels
No labels