mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-03-23 07:50:23 +00:00
fix(scrollspy): xss in target option
This commit is contained in:
parent
149096016f
commit
cc61edfa8a
1 changed files with 1 additions and 1 deletions
|
|
@ -115,7 +115,7 @@ const ScrollSpy = (($) => {
|
|||
|
||||
this._scrollHeight = this._getScrollHeight()
|
||||
|
||||
const targets = $.makeArray($(this._selector))
|
||||
const targets = $.makeArray(document.querySelectorAll(this._selector))
|
||||
|
||||
targets
|
||||
.map((element) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue