close dropdown on document click
Merge pull request #2736 from mouserage/master

Bind dropdown closing to document