Skip to content

Commit 1ff1ee5

Browse files
committed
Fix problem where focus() caused the cursor to jump to start on IE8
1 parent 9f7e6a7 commit 1ff1ee5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/codemirror.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ var CodeMirror = (function() {
118118
setValue: operation(setValue),
119119
getSelection: getSelection,
120120
replaceSelection: operation(replaceSelection),
121-
focus: function(){focusInput(); onFocus(); fastPoll();},
121+
focus: function(){focusInput(); onFocus(); prepareInput(); fastPoll();},
122122
setOption: function(option, value) {
123123
options[option] = value;
124124
if (option == "lineNumbers" || option == "gutter") gutterChanged();

0 commit comments

Comments
 (0)