fixes a bug where the calendar wouldn't hide

If the calendar loses focus to the Next Month button, for instance, it
would never hide, because it hides when it loses focus. This fix sets
focus back after a new render.