Prevent hiding when mousedown on trigger element

Prevent hiding the picker if the mouse is down on the
element used to trigger the picker