Caret is at the end after setting the value
This commit is contained in:
parent
71438d57c3
commit
fe2d55ac00
|
@ -337,7 +337,7 @@ function selectDblClick(td, event, text) {
|
||||||
input.selectionEnd = pos;
|
input.selectionEnd = pos;
|
||||||
if (document.selection) {
|
if (document.selection) {
|
||||||
var range = document.selection.createRange();
|
var range = document.selection.createRange();
|
||||||
range.moveStart('character', pos);
|
range.moveEnd('character', -input.value.length + pos);
|
||||||
range.select();
|
range.select();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue