Toggle: only close grouped elements that are open
Merge pull request #4063 from patheard/toggle-events

Toggle: only close grouped elements that are open