Skip to content
This repository has been archived by the owner on Mar 28, 2024. It is now read-only.

Commit

Permalink
fix(bug): bug
Browse files Browse the repository at this point in the history
bug

fix #398
  • Loading branch information
wpxp123456 committed Dec 25, 2020
1 parent caa6ccb commit a8ff967
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/controllers/sheetBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,6 @@ function showsheetconfigmenu() {
}

let luckysheetsheetrightclick = function ($t, $cur, e) {
//保存正在编辑的单元格内容
if (parseInt($("#luckysheet-input-box").css("top")) > 0) {
formula.updatecell(Store.luckysheetCellUpdate[0], Store.luckysheetCellUpdate[1]);
}

clearTimeout(jfdbclicklagTimeout);
if ($cur.hasClass("luckysheet-sheets-item-name") && $cur.attr("contenteditable") == "true") {
return;
Expand All @@ -141,6 +136,11 @@ let luckysheetsheetrightclick = function ($t, $cur, e) {
}, 1);
}
else {
//保存正在编辑的单元格内容
if (parseInt($("#luckysheet-input-box").css("top")) > 0) {
formula.updatecell(Store.luckysheetCellUpdate[0], Store.luckysheetCellUpdate[1]);
}

$("#luckysheet-input-box").removeAttr("style");
$("#luckysheet-formula-functionrange .luckysheet-formula-functionrange-highlight").remove();
}
Expand Down

0 comments on commit a8ff967

Please sign in to comment.