From a0c93c0b6f9f31741f1028d215c355fc7ff9a2c3 Mon Sep 17 00:00:00 2001 From: cdswyda Date: Tue, 2 Nov 2021 10:40:35 +0800 Subject: [PATCH] =?UTF-8?q?fix(postil):=20=E4=BF=AE=E5=A4=8D=20commentUpda?= =?UTF-8?q?teBefore=20=E9=92=A9=E5=AD=90=E4=B8=AD=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复 return false 的情况下,编辑批注无法消失的bug --- src/controllers/postil.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/controllers/postil.js b/src/controllers/postil.js index c643a13..b5d2ccd 100644 --- a/src/controllers/postil.js +++ b/src/controllers/postil.js @@ -872,6 +872,9 @@ const luckysheetPostil = { let value = $("#" + id).find(".formulaInputFocus").html().replaceAll('
', '\n').replaceAll(/<(.*)>.*?|<(.*) \/>/g, '').trim(); // Hook function if(!method.createHookFunction('commentUpdateBefore',r,c,value)){ + if (!Store.flowdata[r][c].ps.isshow) { + $("#" + id).remove(); + } return; }