2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-05 16:42:29 +03:00

fix(collapse): xss in parent option

This commit is contained in:
Johann-S
2018-05-30 09:46:50 +02:00
parent 2d90d369bb
commit 149096016f
2 changed files with 15 additions and 1 deletions
+1 -1
View File
@@ -289,7 +289,7 @@ const Collapse = (($) => {
parent = this._config.parent[0]
}
} else {
parent = $(this._config.parent)[0]
parent = document.querySelector(this._config.parent)
}
const selector =