Handle hiding when tabbing between controls.

Add a focusin event handler to close the datepicker when focus changes
to another input, such as when tabbing.  Previously, inputs would be
left open.