mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
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.
This commit is contained in:
parent
fe13fbadd4
commit
860635fd17
@ -48,13 +48,6 @@
|
||||
// add placeholder to get the comma-and-space at the end
|
||||
terms.push("");
|
||||
this.value = terms.join(", ");
|
||||
if ( document.selection ) {
|
||||
this.focus();
|
||||
var range = document.selection.createRange();
|
||||
range.moveStart( 'character', this.value.length );
|
||||
range.moveEnd( 'character', 0 );
|
||||
range.select();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
@ -39,13 +39,6 @@
|
||||
// add placeholder to get the comma-and-space at the end
|
||||
terms.push("");
|
||||
this.value = terms.join(", ");
|
||||
if ( document.selection ) {
|
||||
this.focus();
|
||||
var range = document.selection.createRange();
|
||||
range.moveStart( 'character', this.value.length );
|
||||
range.moveEnd( 'character', 0 );
|
||||
range.select();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user