We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20391a4 commit 18e9c05Copy full SHA for 18e9c05
sourcefiles/modern/plugins/bootstrap/js/bootstrap.js
@@ -773,7 +773,7 @@ if (typeof jQuery === 'undefined') {
773
selector = selector && /#[A-Za-z]/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7
774
}
775
776
- var $parent = selector && $(selector)
+ var $parent = selector && $(document).find(selector)
777
778
return $parent && $parent.length ? $parent : $this.parent()
779
0 commit comments