mirror of https://github.com/twbs/bootstrap.git
Attempt to return focus explicitly to dropdown trigger
This commit is contained in:
parent
c147a5d7d6
commit
367fa135aa
|
@ -207,6 +207,9 @@ class Dropdown extends BaseComponent {
|
||||||
this._element.setAttribute('aria-expanded', 'false')
|
this._element.setAttribute('aria-expanded', 'false')
|
||||||
Manipulator.removeDataAttribute(this._menu, 'popper')
|
Manipulator.removeDataAttribute(this._menu, 'popper')
|
||||||
EventHandler.trigger(this._element, EVENT_HIDDEN, relatedTarget)
|
EventHandler.trigger(this._element, EVENT_HIDDEN, relatedTarget)
|
||||||
|
|
||||||
|
// Explicitly return focus to the trigger element
|
||||||
|
this._element.focus()
|
||||||
}
|
}
|
||||||
|
|
||||||
_getConfig(config) {
|
_getConfig(config) {
|
||||||
|
|
Loading…
Reference in New Issue