]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Revert "Attempt to return focus explicitly to dropdown trigger (#41365)" revert-41365-fix-35793 41668/head
authorMark Otto <markdotto@gmail.com>
Fri, 22 Aug 2025 22:16:00 +0000 (15:16 -0700)
committerGitHub <noreply@github.com>
Fri, 22 Aug 2025 22:16:00 +0000 (15:16 -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) {