Fixes #1393 Dropdown shows/hides on window focus/blur. Adds window blur detection to element blur