Skip to content

Commit 860635f

Browse files
committed
Autocomplete: Removed selection handling in IE. No longer needed now that autocomplete ensures that the cursor is placed at the end of the field on select.
1 parent fe13fba commit 860635f

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

demos/autocomplete/multiple-remote.html

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,6 @@
4848
// add placeholder to get the comma-and-space at the end
4949
terms.push("");
5050
this.value = terms.join(", ");
51-
if ( document.selection ) {
52-
this.focus();
53-
var range = document.selection.createRange();
54-
range.moveStart( 'character', this.value.length );
55-
range.moveEnd( 'character', 0 );
56-
range.select();
57-
}
5851
return false;
5952
}
6053
});

demos/autocomplete/multiple.html

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,6 @@
3939
// add placeholder to get the comma-and-space at the end
4040
terms.push("");
4141
this.value = terms.join(", ");
42-
if ( document.selection ) {
43-
this.focus();
44-
var range = document.selection.createRange();
45-
range.moveStart( 'character', this.value.length );
46-
range.moveEnd( 'character', 0 );
47-
range.select();
48-
}
4942
return false;
5043
}
5144
});

0 commit comments

Comments
 (0)