Browse Source

fix(function box input bug): editor box and function box fix

master
liuyang 5 years ago
parent
commit
4ebb79d67f
  1. 6
      src/global/formula.js

6
src/global/formula.js

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

Loading…
Cancel
Save