date picker closed when user clicks out of the item