Skip to content

Status of dropdownId arg? #673

@nwhittaker

Description

@nwhittaker

The <BasicDropdown> component includes a way to override the <BasicDropdownContent> component's id attribute:

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:

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions