Browse Source

fix(postil): 修复 commentUpdateBefore 钩子中的bug

修复 return false 的情况下,编辑批注无法消失的bug
master
cdswyda 4 years ago
parent
commit
a0c93c0b6f
  1. 3
      src/controllers/postil.js

3
src/controllers/postil.js

@ -872,6 +872,9 @@ const luckysheetPostil = {
let value = $("#" + id).find(".formulaInputFocus").html().replaceAll('<div>', '\n').replaceAll(/<(.*)>.*?|<(.*) \/>/g, '').trim(); let value = $("#" + id).find(".formulaInputFocus").html().replaceAll('<div>', '\n').replaceAll(/<(.*)>.*?|<(.*) \/>/g, '').trim();
// Hook function // Hook function
if(!method.createHookFunction('commentUpdateBefore',r,c,value)){ if(!method.createHookFunction('commentUpdateBefore',r,c,value)){
if (!Store.flowdata[r][c].ps.isshow) {
$("#" + id).remove();
}
return; return;
} }

Loading…
Cancel
Save