From 1a2fed99871d79bcb895af1796909ee3e286e05f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E9=9B=B7=E5=90=9B?= Date: Sat, 22 Aug 2020 22:34:04 +0800 Subject: [PATCH] fix(jquery error): jquery error fix jquery error: Uncaught TypeError: ((n.event.special[g.origType] || {}).handle || g.handler).apply is not a function --- src/utils/util.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/utils/util.js b/src/utils/util.js index 6d89e73..90f294b 100644 --- a/src/utils/util.js +++ b/src/utils/util.js @@ -385,7 +385,13 @@ function luckysheetactiveCell() { //单元格编辑聚焦 function luckysheetContainerFocus() { - $("#" + Store.container).attr("tabindex", 0).focus({ + // $("#" + Store.container).attr("tabindex", 0).focus({ + // preventScroll: true + // }); + + // fix jquery error: Uncaught TypeError: ((n.event.special[g.origType] || {}).handle || g.handler).apply is not a function + + $("#" + Store.container).focus({ preventScroll: true }); }