Fix cursor in forms

pull/1/head
yflory 2021-05-28 15:35:53 +02:00
parent ed5cc5158b
commit e68fccc863
1 changed files with 1 additions and 1 deletions

View File

@ -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(); });