soundasleep / jquery-dropdown

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

Made using dropdowns in dropped down panels work. #127

Open mnlipp opened 7 years ago

mnlipp commented 7 years ago

This is a small change against the latest tagged version (2.0.3) that allows you to use jqDropdowns in panels that have been opened by jqDropdown. It makes use of what is already there (e.g. preventing the "parent" dropdown from being hidden by using the parameter of the "hide" function).

I've read that the code is no longer maintained. So I'm mainly creating this request to make other users aware of the solution. For me, jqDropdown is exactly what I was missing when implementing my jquery ui based application. Great Stuff, thanks!

eoghanmurray commented 6 years ago

I've tried using this patch but it appears that you can't remove the nested dropdown by clicking outside it within the parent dropdown, you can only remove both dropdowns by clicking outside the parent dropdown. Is that the case?

mnlipp commented 6 years ago

Indeed. I didn't have the time to fix this yet, though I know the cause. If you want to use the patched version, I'll push it a bit towards the top of my todo list.

eoghanmurray commented 6 years ago

I've made a version which works for me: #131

mnlipp commented 6 years ago

Thanks @eoghanmurray! I've merged your solution into my fork. For the time being, I'll stick to my "minimal changes compared to 2.0.3" approach with my fork, so I didn't simply switch over to your version.