Codemirror not auto focusing in IE

I’m initializing a codemirror instance with fromTextArea on page load, then updating the contents after the user clicks a button. After this happens, Chrome, Firefox, Opera, Safari etc all give the codemirror instance focus, but IE does not.

I’ve set autoFocus to true, and tried giving the underlying textarea object focus(document.getElementById(‘blah’).focus()), and tried codemirror’s focus() method.

Nothing will give the codemirror instance focus in IE except clicking on it with the mouse. After it has focus everything works the same as in other browsers. Any idea what the reason for this issue with IE could be?