Revert "loader.js: place focus at the end of text inputs"
This reverts commit d1fd7e4be7
.
Browsers seem to do this on their own natively. Way better.
refs #3348
This commit is contained in:
parent
b76e6e7597
commit
9857021d2c
|
@ -857,15 +857,6 @@
|
|||
|
||||
if ($activeElement.length && $activeElement.is(':visible')) {
|
||||
$activeElement.focus();
|
||||
if ($activeElement.is('input[type=text]')) {
|
||||
if (typeof $activeElement[0].setSelectionRange === 'function') {
|
||||
// Place focus after the last character. Could be extended to other
|
||||
// input types, would require some \r\n "magic" to work around issues
|
||||
// with some browsers
|
||||
var len = $activeElement.val().length;
|
||||
$activeElement[0].setSelectionRange(len, len);
|
||||
}
|
||||
}
|
||||
} else if (! autorefresh) {
|
||||
if (focusFallback) {
|
||||
$(focusFallback.parent).find(focusFallback.child).focus();
|
||||
|
|
Loading…
Reference in New Issue