2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-02 16:04:07 +03:00

handle # selector for dropdown

This commit is contained in:
Johann-S
2019-02-13 15:13:53 +01:00
committed by XhmikosR
parent a43077d3c3
commit 2ccfa57467
2 changed files with 32 additions and 1 deletions
+1 -1
View File
@@ -29,7 +29,7 @@
selector = selector && /#[A-Za-z]/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7
}
var $parent = selector && $(document).find(selector)
var $parent = selector !== '#' ? $(document).find(selector) : null
return $parent && $parent.length ? $parent : $this.parent()
}