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