Fixed an issue with attaching datetimepicker to an input.
Fixed an issue where if datetimepicker is attached to an input and you click it to show the datetimepicker when you click anywhere else on the screen it wouldn't hide the datetimepicker.