Skip to content

dropdown.js: _completeHide results in uncaught TypeError #41588

@StijnClaessens

Description

@StijnClaessens

Prerequisites

Describe the issue

When using the dropdown functionality, after you select an option from the dropdown, the dropdown.js _completeHide function results in an uncaught TypeError.

Explicitly returning focus to the trigger element fails because this._element is null
see dropdown.js line 212

Reduced test cases

see for instance Havit Autosuggest control
use the control
select an option from the dropdown either by clicking by mouse or enter button
an error is logged in console

What operating system(s) are you seeing the problem on?

Windows

What browser(s) are you seeing the problem on?

Microsoft Edge

What version of Bootstrap are you using?

v5.3.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions