Browse Source
Merge pull request #176 from mengshukeji/dev
fix exitEditMode bug
master
mengshukeji
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
1 deletions
-
src/global/api.js
|
|
@ -466,7 +466,9 @@ export function replace(content, replaceContent, options = {}) { |
|
|
|
* @param {Function} options.success 操作结束的回调函数 |
|
|
|
*/ |
|
|
|
export function exitEditMode(options = {}){ |
|
|
|
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(); |
|
|
|