Skip to content

Commit

Permalink
fix exitEditMode bug
Browse files Browse the repository at this point in the history
  • Loading branch information
sunchao committed Oct 29, 2020
1 parent d8377ae commit 13b7dda
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/global/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,9 @@ export function replace(content, replaceContent, options = {}) {
* @param {Function} options.success 操作结束的回调函数
*/
export function exitEditMode(options = {}){
formula.updatecell(Store.luckysheetCellUpdate[0], Store.luckysheetCellUpdate[1]);
if(parseInt($("#luckysheet-input-box").css("top")) > 0){
formula.updatecell(Store.luckysheetCellUpdate[0], Store.luckysheetCellUpdate[1]);
}

if (options.success && typeof options.success === 'function') {
options.success();
Expand Down

0 comments on commit 13b7dda

Please sign in to comment.