Fix cursor in forms
parent
ed5cc5158b
commit
e68fccc863
|
@ -196,7 +196,7 @@ define([
|
|||
|
||||
// if this element was active before the remote change, restore cursor
|
||||
var setCursor = function () {
|
||||
if (v.type !== 'text') { return; }
|
||||
if (v.type && v.type !== 'text') { return; }
|
||||
input.selectionStart = cursor.start || 0;
|
||||
input.selectionEnd = cursor.end || 0;
|
||||
setTimeout(function () { input.focus(); });
|
||||
|
|
Loading…
Reference in New Issue