Allow to not use preventDefault on the toggle, and to not toggle if clicking enywhere else. Also removed unnecessary code and just use the proper selector for getting the toggle
Fixed tests