1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-25 21:09:06 +02: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

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