]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Revert "Attempt to return focus explicitly to dropdown trigger (#41365)" (#41668)
authorMark Otto <markd.otto@gmail.com>
Mon, 25 Aug 2025 16:48:45 +0000 (09:48 -0700)
committerGitHub <noreply@github.com>
Mon, 25 Aug 2025 16:48:45 +0000 (09:48 -0700)
This reverts commit 24305e7b187875c524a3c9c97ae53e47c1cc5b03.

js/src/dropdown.js

index 88af932f76cbcfb39d698bc09a6cff22c311c33d..96094a3e6577ef5166862edd1e9c542e7550a62e 100644 (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) {