fixes 'click-to-close' bug in accordion dropdowns