From e68fccc863fe59e3cd26fd8529505f2d932d43b9 Mon Sep 17 00:00:00 2001 From: yflory Date: Fri, 28 May 2021 15:35:53 +0200 Subject: [PATCH] Fix cursor in forms --- www/form/inner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/form/inner.js b/www/form/inner.js index 4e9eee66c..71fe9de9b 100644 --- a/www/form/inner.js +++ b/www/form/inner.js @@ -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(); });