soundasleep / jquery-dropdown

Bootstrap-style dropdowns with some added features and no dependencies.
Other
767 stars 266 forks source link

select elements inside drop downs #26

Closed marlon-tucker closed 11 years ago

marlon-tucker commented 11 years ago

Hello,

I noticed a small bug in the behaviour of the dropdown panels. In that if you had a select element (normal dropdown), when you selected a item on that drop down (e.g. the option element) the hide handler would get fired but in firefox the target is document so it caused the drop down to hide itself.

I've just put in a check to see if the target is document, as in theory if the user clicks elsewhere, it should never actually be document, but then again I wouldn't call myself a hardcore html / js expert so your welcome to change it to something else.

Kind Regards

Marlon