]> git.ipfire.org Git - thirdparty/bootstrap.git/commit
Dropdown: merge instance identification in `dataApiKeydownHandler`
authorGeoSot <geo.sotis@gmail.com>
Sun, 30 Jan 2022 21:50:22 +0000 (23:50 +0200)
committerXhmikosR <xhmikosr@gmail.com>
Tue, 1 Feb 2022 06:58:46 +0000 (08:58 +0200)
commitd10543923531d9a2bf0e122439d5b1a2ae4e3d13
tree474e5e169a9604695db69c9564923776cfc5505d
parent22bbff0b037de5e4cf9a44273c4383a27b9f274e
Dropdown: merge instance identification in `dataApiKeydownHandler`

As we use the `dataApiKeydownHandler` only for events that are triggered on `[data-bs-toggle="dropdown"]` or on `.dropdown-menu`, we can ensure that their `parentNode` will ALWAYS be the `.dropdown` wrapper
js/src/dropdown.js
js/tests/unit/dropdown.spec.js