Skip to content

Commit 2b4ecea

Browse files
authored
fix: unsafe jQuery plugin (#1374)
1 parent 12e8c4b commit 2b4ecea

File tree

1 file changed

+1
-1
lines changed
  • src/main/resources/handlebars/swagger-static/assets/js

1 file changed

+1
-1
lines changed

src/main/resources/handlebars/swagger-static/assets/js/bootstrap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@
477477
this.options = $.extend({}, $.fn.collapse.defaults, options)
478478

479479
if (this.options.parent) {
480-
this.$parent = $(this.options.parent)
480+
this.$parent = $(document).find(this.options.parent)
481481
}
482482

483483
this.options.toggle && this.toggle()

0 commit comments

Comments
 (0)