From 479ae81764cd63793094dccc1e48fa6194e1c1c6 Mon Sep 17 00:00:00 2001 From: jichuan Date: Wed, 7 Jun 2023 16:04:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8D=A1=E9=A1=BF=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: jichuan --- ide/src/trace/component/trace/base/TraceRow.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ide/src/trace/component/trace/base/TraceRow.ts b/ide/src/trace/component/trace/base/TraceRow.ts index fe33b4c8..1ac6c041 100644 --- a/ide/src/trace/component/trace/base/TraceRow.ts +++ b/ide/src/trace/component/trace/base/TraceRow.ts @@ -426,6 +426,12 @@ export class TraceRow extends HTMLElement { this.removeAttribute('check-type'); return; } + if (this.getAttribute('check-type') === value) { + return; + } + if (this.folder) { + this.childrenList.forEach(it => it.checkType = value) + } this.setAttribute('check-type', value); if (this.hasAttribute('disabled-check')) { this.checkBoxEL!.style.display = 'none'; @@ -455,9 +461,6 @@ export class TraceRow extends HTMLElement { this.checkBoxEL!.indeterminate = false; break; } - if (this.folder) { - this.childrenList.forEach(it => it.checkType = value) - } } get drawType(): number { -- Gitee