Fix #16072: Clicking into input field within dropdown no longer closes the dropdown
Closes #16073 by merging it
This commit is contained in:
parent
74ae498800
commit
fa9d28b634
2 changed files with 40 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue