Fixes #4186 which was caused by commit da1a87af. The issue is that I had it closing the dropdowns on click, which toggle() wasn't expecting.