2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-05-24 14:04:09 +03:00

Fix #16072: Clicking into input field within dropdown no longer closes the dropdown

Closes #16073 by merging it
This commit is contained in:
Emmanuel Bourgerie
2015-03-16 13:33:42 +00:00
committed by Chris Rebert
parent 74ae498800
commit fa9d28b634
2 changed files with 40 additions and 0 deletions
+2
View File
@@ -99,6 +99,8 @@
if (!$parent.hasClass('open')) return
if (e && e.type == 'click' && /input|textarea/i.test(e.target.tagName) && $.contains($parent[0], e.target)) return
$parent.trigger(e = $.Event('hide.bs.dropdown', relatedTarget))
if (e.isDefaultPrevented()) return