2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-05 16:42:29 +03:00
dropdown - destroy old popper.js references
This commit is contained in:
Johann-S
2019-08-22 21:23:42 +02:00
committed by XhmikosR
parent 41b8ce278b
commit bab999701c
2 changed files with 49 additions and 1 deletions
+4
View File
@@ -436,6 +436,10 @@ class Dropdown {
toggles[i].setAttribute('aria-expanded', 'false')
if (context._popper) {
context._popper.destroy()
}
$(dropdownMenu).removeClass(ClassName.SHOW)
$(parent)
.removeClass(ClassName.SHOW)