soundasleep / jquery-dropdown

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

Feature/preventable hide #117

Closed duizendnegen closed 7 years ago

duizendnegen commented 7 years ago

Re-opening #91

These changes poll whether event.preventDefault() has been called when hiding the dropdown, to allow programatically opting out of hiding it. The use case for this is to allow in certain cases the dropdown to stay open when an area outside of the dropdown has been clicked - for example, another div that is not necessarily contained in the dropdown div.

claviska commented 7 years ago

Thanks, that makes sense. Looks like your editor is set to tabs but the file uses spaces, so it's making the diff look out of whack. Would you mind correcting that? (I need to add an .editorconfig file to the repo.)

duizendnegen commented 7 years ago

Yep, done.