1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-06 13:46:42 +02:00

Dropdown: fix toggle focus after dropdown is hidden using the ESC button (#35500)

This commit is contained in:
GeoSot
2021-12-09 15:34:17 +02:00
committed by GitHub
parent 4fd5539c75
commit c376cb0763
2 changed files with 29 additions and 0 deletions

View File

@@ -434,6 +434,7 @@ class Dropdown extends BaseComponent {
if (isEscapeEvent) {
instance.hide()
getToggleButton.focus()
return
}