mirror of
https://github.com/vrana/adminer.git
synced 2026-01-28 02:09:59 +01:00
Caret is at the end after setting the value
This commit is contained in:
@@ -337,7 +337,7 @@ function selectDblClick(td, event, text) {
|
||||
input.selectionEnd = pos;
|
||||
if (document.selection) {
|
||||
var range = document.selection.createRange();
|
||||
range.moveStart('character', pos);
|
||||
range.moveEnd('character', -input.value.length + pos);
|
||||
range.select();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user