1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-02 09:52:43 +02:00

Revert "Attempt to return focus explicitly to dropdown trigger (#41365)" (#41668)

This reverts commit 24305e7b18.
This commit is contained in:
Mark Otto
2025-08-25 09:48:45 -07:00
committed by GitHub
parent 4bd8b6ca95
commit ac5f51c17e

View File

@@ -207,9 +207,6 @@ class Dropdown extends BaseComponent {
this._element.setAttribute('aria-expanded', 'false')
Manipulator.removeDataAttribute(this._menu, 'popper')
EventHandler.trigger(this._element, EVENT_HIDDEN, relatedTarget)
// Explicitly return focus to the trigger element
this._element.focus()
}
_getConfig(config) {