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

Commit

Permalink
fix(function box input bug): editor box and function box fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tubiaoge committed Sep 25, 2020
1 parent 996565d commit 4ebb79d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/global/formula.js
Original file line number Diff line number Diff line change
Expand Up @@ -3238,7 +3238,7 @@ const luckysheetformula = {
let value = $editer.text(),
valuetxt = value;

if (value.length > 0 && value.substr(0, 1) == "=" && (kcode != 229 || value.length == 1)) {
if (value.length > 0 && !(value1txt.substr(0, 1) != "=" && value1.indexOf("span")>-1) && (kcode != 229 || value.length == 1)) {
value = _this.functionHTMLGenerate(value);
value1 = _this.functionHTMLGenerate(value1txt);

Expand Down Expand Up @@ -3267,6 +3267,10 @@ const luckysheetformula = {

$functionbox.html(value);
}
else if(value1txt.substr(0, 1) != "=" && value1.indexOf("span")>-1){
// $editer.html(value1);
$functionbox.html(value);
}

_this.rangestart = false;
_this.rangedrag_column_start = false;
Expand Down

0 comments on commit 4ebb79d

Please sign in to comment.